jashkenas/coffee-script — Issue #2118: ::foo should expand to ClassName.prototype.foo within class body
Author: jrus
Created: 2012-02-12 17:25:02+00:00
State: open

As an example, I want to make a class with two names for the same function. I currently do:

class MyClass

foo: ->
doStuff()

MyClass::bar = MyClass::foo