fixed bug - not returning this

This commit is contained in:
walterhiggins 2013-04-14 15:15:01 +01:00
parent c32f8aab5f
commit d448fbe9e7

View file

@ -1,4 +1,5 @@
Drone.extend('skyscraper',function(floors){ Drone.extend('skyscraper',function(floors){
floors = floors || 10;
this.chkpt('skyscraper'); this.chkpt('skyscraper');
for (var i = 0;i < floors; i++) for (var i = 0;i < floors; i++)
{ {
@ -7,5 +8,5 @@ Drone.extend('skyscraper',function(floors){
.box0(blocks.glass_pane,20,3,20); .box0(blocks.glass_pane,20,3,20);
this.up(3); this.up(3);
} }
this.move('skyscraper'); return this.move('skyscraper');
}); });