I am trying to get ember.run.bind to work but it just doesn't seem to work, any idea? I have tried all combinations
_didInsertElement: Ember.on('didInsertElement', function () {
Ember.run.bind(this, this.doSomething);
})
or
_didInsertElement: Ember.on('didInsertElement', function () {
Ember.run.bind(this, function() {
this.doSomething();
});
})
or
_didInsertElement: Ember.on('didInsertElement', function () {
var _this = this;
Ember.run.bind(this, function() {
_this.doSomething();
});
})
Aucun commentaire:
Enregistrer un commentaire