Roo/bootstrap/Component.js
authorAlan Knowles <alan@roojs.com>
Mon, 14 Dec 2015 05:39:14 +0000 (13:39 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 14 Dec 2015 05:39:14 +0000 (13:39 +0800)
Roo/bootstrap/Component.js

index a37a524..8a80b78 100644 (file)
@@ -346,14 +346,16 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent,  {
      */
     show : function()
     {
-        this.el.removeClass('hidden');
+        if (this.el) {
+            this.el.removeClass('hidden');
+        }
     },
     /**
      * Hide a component - adds 'hidden' class
      */
     hide: function()
     {
-        if (!this.el.hasClass('hidden')) {
+        if (this.el && !this.el.hasClass('hidden')) {
             this.el.addClass('hidden');
         }