Created
April 8, 2010 04:47
-
-
Save davglass/359781 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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