what's happen when yui run on node-webkit #1647

Open
jianglibo opened this Issue Feb 20, 2014 · 1 comment

Comments

Projects
None yet
2 participants

node-webkit combine nodejs and browser environments,when I run existed site on node-webkit,some io and some dom event wil failure.

Contributor

tivac commented Feb 20, 2014

If you just want to use YUI against the webkit part of node-webkit you can do this:

var Y = YUI();

// trick YUI into not loading all the nodejs stuff, it's wonky here
Y.UA.nodejs = 0;

(from https://github.com/tivac/falco/blob/master/src/index.html#L21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment