Skip to content

Instantly share code, notes, and snippets.

@tivac
Created February 1, 2009 08:46
Show Gist options
  • Save tivac/55826 to your computer and use it in GitHub Desktop.
Save tivac/55826 to your computer and use it in GitHub Desktop.
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