summaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-07-21 06:38:15 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-07-21 06:38:15 (GMT)
commitd2ad09f42db2b6b80427918261f96081eaabfe6c (patch)
tree99da5655d3e3a1e429ec717fd3c97de5f0db7efe /examples/declarative
parentcf851eced1d03c9d839626f86d00fd0734949c9d (diff)
downloadQt-d2ad09f42db2b6b80427918261f96081eaabfe6c.zip
Qt-d2ad09f42db2b6b80427918261f96081eaabfe6c.tar.gz
Qt-d2ad09f42db2b6b80427918261f96081eaabfe6c.tar.bz2
Move the Script interface of QmlComponent to QmlBindableComponent
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/dynamic/dynamic.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/dynamic/dynamic.js b/examples/declarative/dynamic/dynamic.js
index 13317df..8f1e138 100644
--- a/examples/declarative/dynamic/dynamic.js
+++ b/examples/declarative/dynamic/dynamic.js
@@ -28,10 +28,10 @@ function instantCreateWithComponent() {//Like create, but assumes instant readyn
}
function finishCreation(){
- if(component.isReady() && dynamicObject == null){
+ if(component.isReady && dynamicObject == null){
dynamicObject = component.createObject();
dynamicObject.parent = targetItem;
- }else if(component.isError()){
+ }else if(component.isError){
dynamicObject = null;
print("error creating component");
print(component.errorsString());