Roo/LayoutRegion.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:52:27 +0000 (17:52 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:52:27 +0000 (17:52 +0800)
Roo/LayoutRegion.js

index 9fc19e2..1c58c6a 100644 (file)
@@ -303,7 +303,9 @@ Roo.extend(Roo.LayoutRegion, Roo.BasicLayoutRegion, {
      * @param {Boolean} skipAnim (optional) true to collapse the element without animation (if animate is true)
      */
     collapse : function(skipAnim){
-        if(this.collapsed) return;
+        if(this.collapsed) {
+            return;
+        }
         this.collapsed = true;
         if(this.split){
             this.split.el.hide();