src/modules/o_O.model.js in eyeballs-0.5.12 vs src/modules/o_O.model.js in eyeballs-0.5.12.1

- old
+ new

@@ -153,10 +153,13 @@ initializer_methods = { adapter: o_O.model.adapter, all: function(callback){ if(this.adapter) { - return this.adapter.all(this, callback); + run_callback(callback, 'loading'); + return this.adapter.all(this, function(returned_object, response){ + run_callback(callback, 'success', returned_object, response); + }, callback); } }, initialize: function(attributes){ if(!attributes) { var attributes = {}; }; var initialized_attributes = []; \ No newline at end of file