1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

updating documentation with correct variable names.

This commit is contained in:
Jeremy Ashkenas 2010-07-23 09:34:54 -07:00
parent 8262070f5c
commit 0a3f6c49f8
4 changed files with 23 additions and 23 deletions

View file

@ -3,11 +3,12 @@
var __extends = function(child, parent) {
var ctor = function(){ };
ctor.prototype = parent.prototype;
child.__superClass__ = parent.prototype;
child.prototype = new ctor();
child.prototype.constructor = child;
if (typeof parent.extended === "function") parent.extended(child);
child.__superClass__ = parent.prototype;
};
Animal = function() { };
Animal = function() {};
Animal.prototype.move = function(meters) {
return alert(this.name + " moved " + meters + "m.");
};