Roo/Toolbar.js
authorEdward <edward@roojs.com>
Mon, 16 Sep 2013 04:07:44 +0000 (12:07 +0800)
committerEdward <edward@roojs.com>
Mon, 16 Sep 2013 04:07:44 +0000 (12:07 +0800)
Roo/Toolbar.js

index 15707c6..d429219 100644 (file)
@@ -37,13 +37,13 @@ Roo.Toolbar = function(container, buttons, config)
     Roo.apply(this, config);
     this.buttons = buttons;
     
-//    if(container){
-//        this.render(container);
-//    }
-//    this.xitems = xitems;
-//    Roo.each(xitems, function(b) {
-//        this.add(b);
-//    }, this);
+    if(container){
+        this.render(container);
+    }
+    this.xitems = xitems;
+    Roo.each(xitems, function(b) {
+        this.add(b);
+    }, this);
     
 };