From 8cc19b1f7c9c7d4ec8ba91bd87c1b5516a6ba67a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 1 Dec 2010 10:24:31 +0800 Subject: [PATCH] XObjectBase/GdlDock.js --- XObjectBase/GdlDock.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/XObjectBase/GdlDock.js b/XObjectBase/GdlDock.js index 59b3c2cce..50228ee51 100644 --- a/XObjectBase/GdlDock.js +++ b/XObjectBase/GdlDock.js @@ -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); } } -- 2.39.2