'use strict';

/**
 * Ensure lazyLoading is a hash, retain backwards compatibility with using a boolean value
 *
 * @private
 * @param {Object} context
 * @return {Object} lazyLoading
 */

module.exports = function ensureLazyLoginHash(context) {
  if (typeof context.lazyLoading === 'boolean') {
    context.lazyLoading = {
      enabled: context.lazyLoading
    };
  }

  return context;
}
@@ -164,28 +164,16 @@
 %7BObject%7D
- lazyLoading
 %0A */%0A%0Amo

fix jsdoc