Created
November 12, 2010 13:26
-
-
Save tommedema/674074 to your computer and use it in GitHub Desktop.
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
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