public
Created

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10
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');
});
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.