window object in server version
Reported by Gustavo Di Pietro | October 14th, 2010 @ 12:34 PM | in 2.1.1 Release
I tried to import the server version of right (http://rightjs.org/builds/current/right-server.js) in node with:
require('./right');
Executing the file, I get the following error:
/home/Gdipietro/right/right.js:221
$ext(RightJS[natives[i]] = window[natives[i]], {
^
ReferenceError: window is not defined
at Object.<anonymous> (/home/Gdipietro/right/right.js:221:23)
at Module._compile (module:426:23)
at Module._loadScriptSync (module:436:8)
at Module.loadSync (module:306:10)
at loadModule (module:251:12)
at require (module:374:12)
at Object.<anonymous> (/home/Gdipietro/right/index.js:5:1)
at Module._compile (module:426:23)
at Module._loadScriptSync (module:436:8)
at Module.loadSync (module:306:10)
Is it normal that server side version tries to access the window object? Thanks
Comments and changes to this ticket
-
MadRabbit October 14th, 2010 @ 02:07 PM
- Milestone set to 2.1.1 Release
- Tag set to core, server
- Milestone order changed from 196633 to 0
ooopsydaisys, will be fixed
-
MadRabbit October 15th, 2010 @ 03:14 PM
Hey Gustavo,
Just fixed the issue. There is a patched build at the attachment.
-
MadRabbit October 15th, 2010 @ 03:17 PM
- State changed from new to resolved
-
Gustavo Di Pietro October 18th, 2010 @ 12:16 PM
- Milestone order changed from 3 to 0
works great,
gustavo
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RightJS Core Tickets