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

CoffeeScript 1.1.1

This commit is contained in:
Jeremy Ashkenas 2011-05-10 09:27:19 -04:00
parent 6d6e07604e
commit 9e4fa02cdb
13 changed files with 116 additions and 92 deletions

View file

@ -17,10 +17,10 @@ Animal = (function() {
return Animal;
})();
Snake = (function() {
__extends(Snake, Animal);
function Snake() {
Snake.__super__.constructor.apply(this, arguments);
}
__extends(Snake, Animal);
Snake.prototype.move = function() {
alert("Slithering...");
return Snake.__super__.move.call(this, 5);
@ -28,10 +28,10 @@ Snake = (function() {
return Snake;
})();
Horse = (function() {
__extends(Horse, Animal);
function Horse() {
Horse.__super__.constructor.apply(this, arguments);
}
__extends(Horse, Animal);
Horse.prototype.move = function() {
alert("Galloping...");
return Horse.__super__.move.call(this, 45);