diff --git a/src/main/javascript/drone/contrib/skyscraper-example.js b/src/main/javascript/drone/contrib/skyscraper-example.js index 6d0aad8..b5b70cb 100644 --- a/src/main/javascript/drone/contrib/skyscraper-example.js +++ b/src/main/javascript/drone/contrib/skyscraper-example.js @@ -1,4 +1,5 @@ Drone.extend('skyscraper',function(floors){ + floors = floors || 10; this.chkpt('skyscraper'); for (var i = 0;i < floors; i++) { @@ -7,5 +8,5 @@ Drone.extend('skyscraper',function(floors){ .box0(blocks.glass_pane,20,3,20); this.up(3); } - this.move('skyscraper'); + return this.move('skyscraper'); });