Skip to content

Commit c0cc3c2

Browse files
author
Vlad Balin
committed
Merge remote-tracking branch 'refs/remotes/origin/develop'
2 parents 66fe614 + a04a113 commit c0cc3c2

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

nestedtypes.js

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"LICENSE"
3636
],
3737
"license": "MIT",
38-
"version": "1.1.5",
38+
"version": "1.1.6",
3939
"scripts": {
4040
"test": "node_modules/.bin/mocha",
4141
"build": "./node_modules/.bin/webpack",

src/main.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,16 @@ _.extend( exports, Backbone, {
4444
}
4545
}
4646
});
47+
48+
function linkToProp( name ){
49+
return {
50+
get : function(){ return Backbone[ name ]; },
51+
set : function( value ){ Backbone[ name ] = value; }
52+
}
53+
}
54+
55+
// allow sync and jQuery override
56+
Object.defineProperties( exports, {
57+
'sync' : linkToProp( 'sync' ),
58+
'$' : linkToProp( '$' )
59+
});

0 commit comments

Comments
 (0)