jquery - Backbone from NPM via JSPM -


i'm trying install backbone.marionette npm jspm client dependency resolving. simple operation following command in commandprompt:

jspm install marionette=npm:backbone.marionette

all dependencies - except jquery automatically downloaded , installed. runtime error: 'can't call deferred of undefined'. looking code, , found problem in backbone source code line 9, 10 , 11

} else if (typeof exports !== 'undefined') {   var _ = require("underscore");   factory(root, exports, _); 

when running under traceurjs, factory-method called here, , clear, last argument $, left out. when in backbone sourcecode on github, same lines this:

} else if (typeof exports !== 'undefined') { var _ = require('underscore'), $; try { $ = require('jquery'); } catch(e) {} factory(root, exports, _, $); 

here jquery dependency added option (try/catch). have add here, npm version marked same version github - 1.1.2. why difference? seems if has been problem time of, there published few workarrounds adding in code:

$           = require('jquery'); backbone    = require('backbone'); backbone.$  = $ 

i don't this, although works, because workaround, , seems if it's 'not existing'.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -