tbranyen/use.js — Issue #4: Dependency on 'window' breaks in nodejs
Author: absoludity
Created: 2012-03-03 16:24:49+00:00
State: open

Hey there :) I think you're already aware of this by the comment in the code:

// Use window for now (maybe this?)

but I just tried a few ways to get the use plugin working with node, but didn't manage.

< ReferenceError: window is not defined
< at /home/michael/dev/ogt/backbone-test/app/scripts/libs/requirejs/plugins/use.js:52:21
< at Function.execCb (/home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:1872:25)
< at execManager (/home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:541:31)
< at /home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:642:25
< at execManager (/home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:619:17)
< at main (/home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:944:17)
< at callDefMain (/home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:955:18)
< at Object.completeLoad (/home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:1534:21)
< at Function.load (/home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:2286:17)
< at /home/michael/dev/ogt/backbone-test/node_modules/requirejs/bin/r.js:1281:37