Skip to content

Instantly share code, notes, and snippets.

@apipkin
Created August 27, 2012 20:47
Show Gist options
  • Select an option

  • Save apipkin/3492079 to your computer and use it in GitHub Desktop.

Select an option

Save apipkin/3492079 to your computer and use it in GitHub Desktop.
Y.MyWidget = Y.Base.create(NAME, Y.Widget, [], {
initializer: function() {
this._node = null;
},
activate: function(ct) {
// ...
this._node = ct;
// ...
},
_nodeSetter: function() {},
_nodeGetter: function() {
return this._node;
}
}, {
ATTRS: {
'node': {
setter: '_nodeSetter',
getter: '_nodeGetter'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment