maccman/spine — Issue #119: node.js compatibility
Author: secoif
Created: 2011-10-14 05:51:36+00:00
State: open

Basically, i just want to be able to use spine's model system on the serverside, since I found myself constantly creating 'spine inspired' models (save/validate/all/etc), but it turns out using spine in node is broken for now. :(

% node
> var Spine = require('spine')
ReferenceError: document is not defined
at new Controller (.../node_modules/spine/lib/spine.js:523:9)
at Object. (.../node_modules/spine/lib/spine.js:725:15)
at Object. (.../node_modules/spine/lib/spine.js:726:4)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at require (module.js:355:19)
at Object. (.../node_modules/spine/index.js:1:80)
at Module._compile (module.js:411:26):