Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Balin committed Nov 5, 2015
2 parents 66fe614 + a04a113 commit c0cc3c2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
14 changes: 13 additions & 1 deletion nestedtypes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"LICENSE"
],
"license": "MIT",
"version": "1.1.5",
"version": "1.1.6",
"scripts": {
"test": "node_modules/.bin/mocha",
"build": "./node_modules/.bin/webpack",
Expand Down
13 changes: 13 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,16 @@ _.extend( exports, Backbone, {
}
}
});

function linkToProp( name ){
return {
get : function(){ return Backbone[ name ]; },
set : function( value ){ Backbone[ name ] = value; }
}
}

// allow sync and jQuery override
Object.defineProperties( exports, {
'sync' : linkToProp( 'sync' ),
'$' : linkToProp( '$' )
});

0 comments on commit c0cc3c2

Please sign in to comment.