Skip to content

Commit aec1896

Browse files
author
Vlad Balin
committed
fixed store's sync not overriden problem
1 parent 3ce5178 commit aec1896

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nestedtypes.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var Store = exports.Model = Model.extend({
1010
// end store lookup sequence on this class
1111
getStore : function(){ return this; },
1212

13-
sync : Backbone.sync,
13+
sync : function(){ return Backbone.sync.apply( Backbone, arguments ); },
1414
// delegate item lookup to owner, and to the global store if undefined
1515
get : function( name ){ return this[ name ] || ( this._owner && this._owner.get( name ) ) || _store[ name ]; }
1616
});

0 commit comments

Comments
 (0)