src/modules/o_O.model.js in eyeballs-0.5.6.1 vs src/modules/o_O.model.js in eyeballs-0.5.7

- old
+ new

@@ -177,24 +177,24 @@ this.initialize(attributes).save(callbacks); }, find: function(id, callback){ if(this.adapter) { - run_callback(callback, 'loading', this) + run_callback(callback, 'loading', this.initialize({id: id})) var model = this; - return this.adapter.find(this, id, function(returned_object){ + return this.adapter.find(this, id, function(returned_object, response){ found_object = model.initialize(returned_object); if(!found_object['new_record']) { found_object['new_record'] = false; } if(found_object.id) { - run_callback(callback, 'success', found_object); + run_callback(callback, 'success', found_object, response); } else { - run_callback(callback, 'failure', found_object); + run_callback(callback, 'failure', found_object, response); } }, callback); } }, model_name: model_name, \ No newline at end of file