Skip to content

Instantly share code, notes, and snippets.

@tommedema
Created November 12, 2010 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommedema/674074 to your computer and use it in GitHub Desktop.
Save tommedema/674074 to your computer and use it in GitHub Desktop.
methods : {
load : function() {
//load element: new source button
this.newSourceButton = new Interface.Button({buttonValue : "New Source"});
this.newSourceButton.load(this.mid1Element, this.onSourceButtonClick);
},
onSourceButtonClick : function() {
console.log(this); //returns window
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment