isLoaded
ajax 呼び出しの成功メソッドが呼び出される前に、RecordArray ステータスが true に設定される理由を誰かが説明できますか?
ember-data ソースコードから
findAll: function(store, type, since) {
var root = this.rootForType(type);
this.ajax(this.buildURL(root), "GET", {
data: this.sinceQuery(since),
success: function(json) {
debugger;
Ember.run(this, function(){
this.didFindAll(store, type, json);
});
}
});
},
ビューで定義
handler: function() {
var content, controller = this.get('controller');
if(controller.get('content.isLoaded')) {
}
}.observes('controller.content.isLoaded')