-
Notifications
You must be signed in to change notification settings - Fork 116
Use of global in ChangeSummary IIFEs breaks loading in node-webkit #23
Comments
Verified, I was able to fix this just by doing a search replace on "global" to something else |
I don't know anything about node-webkit. I'm going to close this issue, but ask anyone who this is hurting to submit a PR to fix it. |
I'm having this issue here, it actually starts with not finding ArraySplice... any hint on how to fix that? I really wanna use polymer with node-webkit... |
The issue here isn't really observe-js, it's all of Polymer. Node's top-level scope isn't the global scope, so the only way to fix this would be to have polymer change to use a node-friendly package system, or to have all uses of symbols check for the symbol in the top-level scope and also on 'global.' |
I would not single out NodeJS here. NodeJS is not the only server environment and I can see polymer being used on others. Check for |
agreed with @cadorn |
actually I found a fix here, I got the compiled polymer file, search and replace "global" with something else (I used fakeGlobal, but almost any name will do the same). but it's hacky and ugly... |
The problem is the last line of
In a node-webkit html page, both There are various ways to check for node-webkit now, one of them could simply be:
@rafaelw: As I see it, this issue is not effecting all of polymer, but only the javascript-specific polyfills like |
Moved Polymer/polymer#228 to here.
node-webkit is a project that combines
node.js
andChromium
, withnode.js
preloaded into the javascript vm.node.js
uses theglobal
global scope, and starting at Line 1174 in change_summary.js, the use ofglobal
will putPathObserver
and other modules into thenode.js
scope and not thewindow
scope.The text was updated successfully, but these errors were encountered: