Skip to content

Instantly share code, notes, and snippets.

@AlyxRen
Created August 30, 2010 20:07
Show Gist options
  • Save AlyxRen/557966 to your computer and use it in GitHub Desktop.
Save AlyxRen/557966 to your computer and use it in GitHub Desktop.
class foo
constructor: ()->
alert 'fooBar'
a: ->
b: ->
c: ->
d: ->
e: ->
f: ->
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() {};
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