diff options
| author | Alon Levy <alon@pobox.com> | 2014-10-24 12:29:29 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-10-24 12:44:44 +0300 |
| commit | 1cda178609e6946b6791fe2dd7c6af7a151f2eb4 (patch) | |
| tree | 774221d4ef93e065e21e734b4d29f3188bd0bcf9 /scripts | |
| parent | 2f0900466a6a1bbb002d7ae95a4f03e462b9953f (diff) | |
robot: fix undefined variable from define addition
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/robot.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/robot.js b/scripts/robot.js index 4b449210..15265b78 100644 --- a/scripts/robot.js +++ b/scripts/robot.js @@ -22,7 +22,7 @@ sentence+='#John likes #Apples and #Oranges and #Pistachio|'; sentence+='#Click on any #Node to change and modify it|'; sentence+='#Play around and have #Fun!|'; -var robot = function (sentence) { +var robot = function (element, sentence) { var r = { speed: 1, counter: 0, @@ -57,7 +57,7 @@ var robot = function (sentence) { } $('.logo').click(function(){ - setTimeout( robot(sentence).next_event, 1000 ); + setTimeout( robot(undefined, sentence).next_event, 1000 ); }); /*var answer = confirm ("Would you like a tutorial?") |
