Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created June 29, 2010 15:30
Show Gist options
  • Save StanAngeloff/457374 to your computer and use it in GitHub Desktop.
Save StanAngeloff/457374 to your computer and use it in GitHub Desktop.
:mixin Options
class UIButton extends UIControl
click: ->
@fireEvent 'click', [this]
var UIButton;
UIButton = function() {
return UIControl.apply(this, arguments);
};
__extends(UIButton, UIControl);
UIButton.prototype.click = function() {
return this.fireEvent('click', [this]);
};
UIButton = mixin(UIButton, Options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment