Skip to content

Instantly share code, notes, and snippets.

@hatched
Last active December 16, 2015 15:59
Show Gist options
  • Save hatched/5459984 to your computer and use it in GitHub Desktop.
Save hatched/5459984 to your computer and use it in GitHub Desktop.
YUI.add('testplugin', function(Y) {
var MyPlugin = Y.Base.create('testplugin', Y.Plugin.Base, [], {
initializer : function() {
this.objectProperty = {
def1: "foo",
def2: "bar"
}
}
}, {
NS : 'testplugin'
});
}, '0.0.1', {requires: ['base-build', 'plugin']});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment