Skip to content

Instantly share code, notes, and snippets.

@canonic-epicure
Created November 12, 2010 13:29
Show Gist options
  • Save canonic-epicure/674078 to your computer and use it in GitHub Desktop.
Save canonic-epicure/674078 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"});
var me = this
this.newSourceButton.load(this.mid1Element, function () { me.onSourceButtonClick.apply(me, arguments })
},
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