Last active
August 29, 2015 13:58
-
-
Save WebCloud/10275078 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://emberjs.com/api/classes/Ember._MetamorphView.html#event_didInsertElement workaround for the | |
/* | |
didInsertElement: function(){ | |
console.log('only called on the first load of the view'); | |
} | |
*/ | |
// either Ember.View.reopen (beware, will execute on EVERY view) or App.MyView = Ember.View.create | |
init:function(){ | |
this._super(); | |
this.on('didInsertElement', function(){ | |
console.log('now I\'m called every time!'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment