diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2009-07-21 06:38:15 (GMT) |
---|---|---|
committer | Alan Alpert <alan.alpert@nokia.com> | 2009-07-21 06:38:15 (GMT) |
commit | d2ad09f42db2b6b80427918261f96081eaabfe6c (patch) | |
tree | 99da5655d3e3a1e429ec717fd3c97de5f0db7efe /demos/declarative/samegame/content | |
parent | cf851eced1d03c9d839626f86d00fd0734949c9d (diff) | |
download | Qt-d2ad09f42db2b6b80427918261f96081eaabfe6c.zip Qt-d2ad09f42db2b6b80427918261f96081eaabfe6c.tar.gz Qt-d2ad09f42db2b6b80427918261f96081eaabfe6c.tar.bz2 |
Move the Script interface of QmlComponent to QmlBindableComponent
Diffstat (limited to 'demos/declarative/samegame/content')
-rw-r--r-- | demos/declarative/samegame/content/samegame.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/declarative/samegame/content/samegame.js b/demos/declarative/samegame/content/samegame.js index 3592edc..b1b2c50 100644 --- a/demos/declarative/samegame/content/samegame.js +++ b/demos/declarative/samegame/content/samegame.js @@ -201,7 +201,7 @@ var waitTop = -1; function finishCreatingBlock(xIdx,yIdx){ //TODO: Doc that the 'x', 'y' that were here are hidden properties from the calling QFxItem - if(component.isReady()){ + if(component.isReady){ if(xIdx == undefined){ //Called without arguments, create a previously stored (xIdx,yIdx) if(waitTop == -1) @@ -226,7 +226,7 @@ function finishCreatingBlock(xIdx,yIdx){ dynamicObject.spawned = true; board[index(xIdx,yIdx)] = dynamicObject; return true; - }else if(component.isError()){ + }else if(component.isError){ print("error creating block"); print(component.errorsString()); }else{ |