Created
October 5, 2013 02:00
-
-
Save uris77/6835692 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
class MultiRenderView | |
render: -> | |
_(@) | |
.chain() | |
.functions() | |
.select((f) -> f.indexOf("render") == 0) | |
.without("render") | |
.each (f) => @[f]() | |
class MyView extends MultiRenderView | |
constructor: (@el) -> | |
renderDislplay: -> @$el.find('.display').text('L') | |
renderNumber: -> @$el.find('.display').text('Number') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment