Created
February 1, 2009 08:46
-
-
Save tivac/55826 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('node', function(Y) { | |
YUI.namespace("Test"); | |
YUI.Test = function() { | |
var shared = 1; | |
function increase() { | |
shared++; | |
} | |
function output() { | |
Y.get('#users h1').set('innerHTML', shared); | |
} | |
return { | |
shared : shared, | |
increase : increase, | |
out : output | |
} | |
}(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment