Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created June 5, 2013 22:01
Show Gist options
  • Save eduardolundgren/5717677 to your computer and use it in GitHub Desktop.
Save eduardolundgren/5717677 to your computer and use it in GitHub Desktop.
A.GitHub = A.Base.create('github', Y.Widget, [],
{
initializer: function(config) {
console.log( this.get('fooNode') )
}
},
{
HTML_PARSER: {
fooNode: '.foo'
},
ATTRS: {
fooNode: {
valueFn: function() {
return A.Node.ceate('<div class="foo">foo</div>');
}
}
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment