Created
August 30, 2010 20:07
-
-
Save AlyxRen/557966 to your computer and use it in GitHub Desktop.
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 foo | |
constructor: ()-> | |
alert 'fooBar' | |
a: -> | |
b: -> | |
c: -> | |
d: -> | |
e: -> | |
f: -> |
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
var foo; | |
foo = function() { | |
alert('fooBar'); | |
return this; | |
}; | |
foo.prototype.a = function() {}; | |
foo.prototype.b = function() {}; | |
foo.prototype.c = function() {}; | |
foo.prototype.d = function() {}; | |
foo.prototype.e = function() {}; | |
foo.prototype.f = function() {}; |
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
var foo; | |
foo = function() { | |
alert('fooBar'); | |
return this; | |
}; | |
foo.prototype = { | |
a: function() {}, | |
b: function() {}, | |
c: function() {}, | |
d: function() {}, | |
e: function() {}, | |
f: function() {} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment