XObjectBase/GdlDockItem.js
authorAlan Knowles <alan@akkbhome.com>
Tue, 30 Nov 2010 15:04:27 +0000 (23:04 +0800)
committerAlan Knowles <alan@akkbhome.com>
Tue, 30 Nov 2010 15:04:27 +0000 (23:04 +0800)
XObjectBase/GdlDockItem.js

index fde2b25..924bad1 100644 (file)
@@ -17,10 +17,11 @@ GdlDockItem = XObject.define(
         },
         init : function()
         {
+            GdlDockItem.id = GdlDockItem.id ? GdlDockItem.id + 1 : 1;
             this.el = new Gdl.GdlDockItem.c_new (
-                this.name, 
-                this.default_title, 
-                Gdl.DockItemBehavior.LOCKED
+                this.name || 'Dock'+
+                this.long_name, 
+                this.behaviour //Gdl.DockItemBehavior.LOCKED
             );
             this.layout = new Gdl.DockLayout.c_new (dock);
             XObject.prototype.init.call(this);