Both functions return this. They can now be chained.
This commit is contained in:
parent
e7f4a5c99b
commit
284c2da586
1 changed files with 4 additions and 0 deletions
|
@ -178,6 +178,8 @@ Drone.extend('logojs', function(fg, bg) {
|
|||
.box(fg);
|
||||
|
||||
this.move('logojs-start')
|
||||
|
||||
return this;
|
||||
});
|
||||
//
|
||||
// Makes a cube of JS logos!
|
||||
|
@ -211,4 +213,6 @@ Drone.extend('logojscube', function(fg, bg) {
|
|||
.right(100)
|
||||
.turn(3)
|
||||
.logojs(fg, bg);
|
||||
|
||||
return this;
|
||||
});
|
||||
|
|
Reference in a new issue