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

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