Roo/Toolbar.js
authorEdward <edward@roojs.com>
Tue, 19 May 2015 10:02:39 +0000 (18:02 +0800)
committerEdward <edward@roojs.com>
Tue, 19 May 2015 10:02:39 +0000 (18:02 +0800)
Roo/Toolbar.js

index 5265f2d..667abe8 100644 (file)
@@ -381,12 +381,16 @@ Roo.extend(Roo.Toolbar.Item, Roo.util.Observable, {
     },
 
     // private
+//    render : function(td){
+//        this.td = td;
+//        td.appendChild(this.el);
+//        
+//        this.fireEvent('render', this);
+//    },
     render : function(td){
         this.td = td;
-        td.appendChild(this.el);
-        this.fireEvent('render', this);
+        Roo.Toolbar.Button.superclass.render.call(this, td);
     },
-    
     /**
      * Removes and destroys this item.
      */