Roo/bootstrap/dash/TabBox.js
authorEdward <edward@roojs.com>
Mon, 16 Feb 2015 09:17:55 +0000 (17:17 +0800)
committerEdward <edward@roojs.com>
Mon, 16 Feb 2015 09:17:55 +0000 (17:17 +0800)
Roo/bootstrap/dash/TabBox.js

index ce6c1fd..303ac6d 100644 (file)
@@ -24,7 +24,6 @@ Roo.bootstrap.dash.TabBox = function(config){
     Roo.bootstrap.dash.TabBox.superclass.constructor.call(this, config);
     
     this.panes = [];
-    Roo.bootstrap.dash.TabBox.register(this);
     
     this.addEvents({
         // raw events
@@ -157,35 +156,3 @@ Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component,  {
     
     
 });
-
-
-Roo.apply(Roo.bootstrap.dash.TabBox, {
-    
-    boxes: {},
-     /**
-    * register a TabBox
-    * @param {Roo.bootstrap.dash.TabBox} the box to add
-    */
-    register : function(box)
-    {
-        this.boxes[box.name] = box;
-       
-    },
-    /**
-    * fetch a box based on the box name
-    * if one does not exist , it will get created.
-    * @param {string} the box name
-    * @returns {Roo.bootstrap.dash.TabBox} the box 
-    */
-    get: function(name) {
-        if (typeof(this.boxes[name]) == 'undefined') {
-            this.register(new Roo.bootstrap.dash.TabBox({ name : name }));
-        }
-        return this.boxes[name] ;
-    }
-    
-    
-    
-});