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:
parent
8262070f5c
commit
0a3f6c49f8
4 changed files with 23 additions and 23 deletions
|
@ -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.");
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue