Skip to content

Commit

Permalink
Interface designer example: Check also for 'editor' variable when pol…
Browse files Browse the repository at this point in the history
…ling
  • Loading branch information
cvetan5 committed Sep 15, 2016
1 parent 0e866c8 commit 2afb470
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions html/examples/interfacedesigner/example.webtundrajs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ var InterfaceDesignerDemo = IApplication.$extend(

this.subs = undefined;
if (!Tundra.client.isConnected())
Tundra.client.onConnected(this, this.start);
Tundra.client.onConnected(this, this.start);
else
this.start();
},

start : function(app)
{
this.intd = app || Tundra.client.findApplication("Editor");
if (!this.intd)
if (!this.intd || !this.intd.editor)
{
if (this.subs)
return;
Expand All @@ -38,7 +38,12 @@ var InterfaceDesignerDemo = IApplication.$extend(
}

if (this.intd && this.intd.editor)
this.intd.editor.startIntro();
{
setTimeout(function()
{
this.intd.editor.startIntro();
}.bind(this), 250);
}
}
});

Expand Down

0 comments on commit 2afb470

Please sign in to comment.