summaryrefslogtreecommitdiffstats
path: root/examples/declarative/dynamic/dynamic.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/dynamic/dynamic.js')
-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());