Last active
December 21, 2015 09:39
-
-
Save mcculloughsean/6286747 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 Foo | |
constructor: (attrs) -> | |
@myAttrs = attrs | |
class Bar extends Foo | |
constructor: -> | |
# short-term workaround for lack of implicit constructor | |
Foo.apply this, arguments | |
dumpAttrs: -> | |
console.log @myAttres | |
class Baz extends Foo | |
constructor: (attrs, otherAttrs) -> | |
# You would have written `super(attrs)` | |
Foo.apply this, attrs | |
@moreAttrs = otherAttrs | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment