User:Tony Sidaway/buttons.js

alert(tony);

// ButtonMapping class function tony.ButtonMapping(label, description, proc) { this.label=label; this.description=description; this.proc=proc; } // doFunc method for ButtonMapping class function tony.ButtonMapping.prototype.doFunc { this.proc(this.label); }