Skip to content

Instantly share code, notes, and snippets.

@brianjmiller
Last active September 24, 2015 05:08
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjmiller/672556 to your computer and use it in GitHub Desktop.
Save brianjmiller/672556 to your computer and use it in GitHub Desktop.
YUI3 Module template
YUI.add(
"!!!",
function(Y, NAME) {
var Clazz = Y.namespace("!!!").!!! = Y.Base.create(
NAME,
!!!,
[],
{
initializer: function (config) {
Y.log("initializer", "debug", Clazz.NAME);
},
destructor: function () {
Y.log("destructor", "debug", Clazz.NAME);
}
},
{
ATTRS: {}
}
);
},
"!!!",
{
requires: [
"!!!-css"
]
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment