コントローラのアクションを
actions: {
loadMore: function() {}
}
これを行うと、以前はコントローラーでアクションを実行する必要があったコードが機能しなくなりました。
Ember.tryInvoke(view.get('controller'), 'loadMore');
これをやり直す適切な方法は何でしょうか?
編集
tryInvoke を使用する完全なコード:
didInsertElement: function() {
'use strict';
var view = this;
this.$().bind('inview', function(event, isInView, visiblePartX, visiblePartY) {
if (isInView) {
Ember.tryInvoke(view.get('controller'), 'loadMore');
}
});
},