From db42ca0c781e6da5b1278fefafd04862d93b5991 Mon Sep 17 00:00:00 2001 From: Marcelo Mira Date: Thu, 17 May 2018 11:22:15 -0300 Subject: [PATCH] [FIX] Support for engine add-on (#63) * [FIX] Support for engine add-on `app.import` wasn't targeting my engine's dummy app, so this should provide wider support. * Removing private method Using `this.import`, removing private `_findHost` --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0d478a4..997afcf 100644 --- a/index.js +++ b/index.js @@ -3,8 +3,8 @@ module.exports = { name: 'ember-initials', - included: function(app) { - this._super.included(app); - app.import('node_modules/blueimp-md5/js/md5.min.js', { using: [{ transformation: 'amd', as: 'md5' }]}); + included: function() { + this._super.included.apply(this, arguments); + this.import('node_modules/blueimp-md5/js/md5.min.js', { using: [{ transformation: 'amd', as: 'md5' }]}); } }