Created
April 9, 2016 09:57
-
-
Save jae-jae/dd8a9c84b19b47f7391880ab25525e75 to your computer and use it in GitHub Desktop.
xxxx
This file contains 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 A | |
x1:(arg)-> | |
console.log 'x1' + arg | |
x2:(arg1,arg2)-> | |
console.log 'x2' + arg1 + ":" + arg2 | |
run:(c,arg...)-> | |
@[c] && @[c].apply(this,arg) | |
c = new A() | |
#c.run 'x1','aaaa' | |
c.run 'x2','aaa','ddd' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment