क्या कोई मुझे बता सकता है कि रिकॉर्डएरे की स्थिति isLoaded
को अजाक्स कॉल पर सफलता विधि से पहले भी सत्य पर सेट किया गया है।एम्बर-डेटा रिकॉर्डअरे को लोड किया गया स्थिति
एंबर-डेटा स्रोत कोड
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')