From: Alan Knowles Date: Thu, 6 May 2010 10:42:25 +0000 (+0800) Subject: builder.html.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=a2b4de9c2777b586360a55eed77ece2e4b1f0f6c builder.html.js --- diff --git a/builder.html.js b/builder.html.js index 131a65123..1604e4f09 100644 --- a/builder.html.js +++ b/builder.html.js @@ -42,7 +42,11 @@ Builder = { } if (this.layoutbase) { //console.log(Builder.dump(this.layoutbase.el)); - + try { + this.layoutbase.remove('center', this.layoutbase.getRegion('center')); + } catch( e) { + // reload!!? + } this.layoutbase= false; } @@ -108,7 +112,7 @@ Builder = { minTabWidth: 140 } }); - } + } this.layoutbase.addxtype( cfg );