Created
June 12, 2012 13:11
-
-
Save yamamoto-febc/2917414 to your computer and use it in GitHub Desktop.
javascript docment1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.Controller("MyWidget", | |
{ | |
defaults : { | |
message : "Remove Me" | |
} | |
}, | |
{ | |
init : function(rawEl, rawOptions){ | |
this.element.append( | |
"<div>"+this.options.message+"</div>" | |
); | |
}, | |
"div click" : function(div, ev){ | |
div.remove(); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment