Skip to content

Commit

Permalink
don't use Function.bind
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Sep 16, 2014
1 parent 65f8878 commit 3670324
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendor-addon/liquid-fire/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default Ember.Object.extend({

var modalConfigs = this.container.lookup('router:main').router.modals;
if (modalConfigs && modalConfigs.length > 0) {
modalConfigs.forEach(this.registerModal.bind(this));
var self = this;
modalConfigs.forEach(function(m){ self.registerModal(m); });
}

Ember.run.schedule('afterRender', this, 'appendModalContainer');
Expand Down

0 comments on commit 3670324

Please sign in to comment.