Skip to content

Instantly share code, notes, and snippets.

@mcculloughsean
Last active December 21, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcculloughsean/6286747 to your computer and use it in GitHub Desktop.
Save mcculloughsean/6286747 to your computer and use it in GitHub Desktop.
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