Permalink
Browse files

Compatibility with Backbone 0.9 on Node.js as well

  • Loading branch information...
1 parent c59df2c commit 7fad9333ee1836f5ae280b0a3d7a692a0349cdce @bergie bergie committed Apr 24, 2012
Showing with 365 additions and 186 deletions.
  1. +328 −153 lib/backboneJS/backbone.js
  2. +34 −31 lib/backboneJS/backbone.min.js
  3. +1 −1 package.json
  4. +2 −1 src/VIE.js
View
@@ -17,7 +17,7 @@
"Jonatan Lundin"
],
"dependencies" : {
- "backbone" : "<0.9.0",
+ "backbone" : ">=0.9.0",
"underscore": ">=1.2.0",
"jquery" : ">=1.5.0",
"request" : ">=2.2.0"
View
@@ -385,14 +385,15 @@ VIE.prototype.loadSchema = function(url, options) {
//
// In browser environments the dependencies have to be included
// before including VIE itself.
-if(typeof exports === 'object') {
+if (typeof exports === 'object') {
exports.VIE = VIE;
if (!jQuery) {
jQuery = require('jquery');
}
if (!Backbone) {
Backbone = require('backbone');
+ Backbone.setDomLibrary(jQuery);
}
if (!_) {
_ = require('underscore')._;

0 comments on commit 7fad933

Please sign in to comment.