XObjectBase/GdlDock.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 1 Dec 2010 02:24:31 +0000 (10:24 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 1 Dec 2010 02:24:31 +0000 (10:24 +0800)
XObjectBase/GdlDock.js

index 59b3c2c..50228ee 100644 (file)
@@ -16,11 +16,9 @@ GdlDock = XObject.define(
         {
             
             // dock for the current window exists. - use it..
-            if (this.get('^').dock) {
-                
-            }
-            this.el = new Gdl.Dock ();
-            this.layout = new Gdl.DockLayout.c_new (this.el);
+            this.el = this.get('^').dock || new Gdl.Dock ();
+            this.get('^').dock =  this.el ;
+            this.get('^').layout = new Gdl.DockLayout.c_new (this.el);
             XObject.prototype.init.call(this);
         }
     }