summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2010-06-29 08:21:00 (GMT)
committermae <qt-info@nokia.com>2010-06-29 08:21:00 (GMT)
commit836140b72663aa6b520d7c40d01813c164a60f8e (patch)
tree561757ff83691a899a3393acdd0e2fa490a9b8d2 /demos
parent3bb85e47ddbc18d501e269f043bf92a84066460c (diff)
downloadQt-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.js6
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) {