From f4257ece0d449a6243893c52d9fa5516ef3271ad Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 24 Mar 2017 16:03:00 +0100 Subject: [PATCH] Fix use of options to not override options property of EmberAddon super class --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index d281426e8..a2095206e 100644 --- a/index.js +++ b/index.js @@ -50,7 +50,7 @@ module.exports = { return; let config = baseConfig['responsive-image']; let url = baseConfig.rootURL || baseConfig.baseURL || ''; - this.options = []; + this.addonOptions = []; if (Array.isArray(config) === false) { config = [config]; @@ -58,7 +58,7 @@ module.exports = { config.forEach((item) => { let extendedConfig = extend(defaultConfig(env), item); extendedConfig.rootURL = url; - this.options.push(extendedConfig); + this.addonOptions.push(extendedConfig); }) }, @@ -95,7 +95,7 @@ module.exports = { this.metaData.prepend = this.app.options.fingerprint.prepend; } let trees = []; - this.options.forEach((options) => { + this.addonOptions.forEach((options) => { let imageTree = this.resizeImages(tree, options) trees.push(imageTree); }); @@ -120,7 +120,7 @@ module.exports = { }, postBuild(result) { - this.options.forEach((options) => { + this.addonOptions.forEach((options) => { if (options.removeSourceDir) { // remove folder with source files rimraf.sync(path.join(result.directory, options.sourceDir));