diff options
author | mae <qt-info@nokia.com> | 2010-06-29 08:21:00 (GMT) |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-06-29 08:21:00 (GMT) |
commit | 836140b72663aa6b520d7c40d01813c164a60f8e (patch) | |
tree | 561757ff83691a899a3393acdd0e2fa490a9b8d2 /demos | |
parent | 3bb85e47ddbc18d501e269f043bf92a84066460c (diff) | |
download | Qt-836140b72663aa6b520d7c40d01813c164a60f8e.zip Qt-836140b72663aa6b520d7c40d01813c164a60f8e.tar.gz Qt-836140b72663aa6b520d7c40d01813c164a60f8e.tar.bz2 |
Undefined is undefined, and now qml warns about it
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/snake/content/snake.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/declarative/snake/content/snake.js b/demos/declarative/snake/content/snake.js index 4d05e33..0f0dbf7 100644 --- a/demos/declarative/snake/content/snake.js +++ b/demos/declarative/snake/content/snake.js @@ -150,7 +150,7 @@ function move() { snake.push(newLink); } else { var lastLink = snake[snake.length-1]; - board[lastLink.row * numColumns + lastLink.column] = Undefined; + board[lastLink.row * numColumns + lastLink.column] = undefined; } if (waitForCookie > 0) { @@ -186,7 +186,7 @@ function move() { function isFree(row, column) { - return board[row * numColumns + column] == Undefined; + return board[row * numColumns + column] == undefined; } function isHead(row, column) @@ -214,7 +214,7 @@ function moveSkull() --linksToDie; var link = snake.pop(); link.dying = true; - board[link.row * numColumns + link.column] = Undefined; + board[link.row * numColumns + link.column] = undefined; if (score > 0) --score; if (snake.length == 0) { |