Created
June 29, 2010 15:30
-
-
Save StanAngeloff/457374 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
:mixin Options | |
class UIButton extends UIControl | |
click: -> | |
@fireEvent 'click', [this] |
This file contains hidden or 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
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