Can any one explain to me why a RecordArray status isLoaded
is set to true before even a success method on an ajax call is called.
From ember-data source code
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);
});
}
});
},
Defined in a view
handler: function() {
var content, controller = this.get('controller');
if(controller.get('content.isLoaded')) {
}
}.observes('controller.content.isLoaded')
There appears to be an ongoing bug with isLoaded
properties being set prematurely on collections. Here is the relevant issue on GitHub.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With