examples/layout/viewpanel.bjs
authorChris <chris@roojs.com>
Mon, 21 Oct 2013 10:38:17 +0000 (18:38 +0800)
committerChris <chris@roojs.com>
Mon, 21 Oct 2013 10:38:17 +0000 (18:38 +0800)
examples/layout/viewpanel.js

examples/layout/viewpanel.bjs
examples/layout/viewpanel.js

index 089d735..38976d7 100644 (file)
@@ -7,7 +7,7 @@
     "items": [
         {
             "listeners": {
-                "activate": "function (_self)\n{\n    Roo.log(_self);\n    \n    if(this.panel.active){\n        _this.view = this.panel.view;\n    }\n}"
+                "activate": "function (_self)\n{\n    Roo.log(_self);\n    \n    if(this.active){\n        _this.view = this.view;\n    }\n}"
             },
             "xtype": "ContentPanel",
             "|xns": "Roo",
index 7e597f6..f0f3e41 100644 (file)
@@ -22,8 +22,8 @@ viewpanel = new Roo.XComponent({
                 {
                     Roo.log(_self);
                     
-                    if(this.panel.active){
-                        _this.view = this.panel.view;
+                    if(this.active){
+                        _this.view = this.view;
                     }
                 }
             },