Fixing defaults so args can take effect.

This commit is contained in:
Chris Ruppel 2013-01-26 23:07:10 -06:00
parent 36255359c4
commit 182cdc22d8

View file

@ -9,8 +9,13 @@ load(__folder + "drone.js");
// the material that the square will be made of
//
Drone.extend('logojs', function(fg, bg) {
fg = '35:7'; // default to gray wool
bg = 41; // default to gold blocks
// foreground defaults to gray wool
if (typeof fg == "undefined")
fg = '35:7';
// background defaults to gold blocks
if (typeof bg == "undefined")
bg = 41;
// Draw the sqaure
this.up()