Skip to content

Instantly share code, notes, and snippets.

@davglass
Created April 8, 2010 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save davglass/359781 to your computer and use it in GitHub Desktop.
Save davglass/359781 to your computer and use it in GitHub Desktop.
YUI().use('event', 'io', 'nodejs-dom', function(Y) {
//Do your stuff
//Inside the request handler callback:
//Now each request get's a new DOM and not a shared one.
Y.use('nodejs-dom', function(Y) {
var document = Y.Browser.document;
document.createElement('div');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment