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

index 1c58c6a..2862553 100644 (file)
@@ -332,8 +332,12 @@ Roo.extend(Roo.LayoutRegion, Roo.BasicLayoutRegion, {
      * @param {Boolean} skipAnim (optional) true to expand the element without animation (if animate is true)
      */
     expand : function(e, skipAnim){
-        if(e) e.stopPropagation();
-        if(!this.collapsed || this.el.hasActiveFx()) return;
+        if(e) {
+            e.stopPropagation();
+        }
+        if(!this.collapsed || this.el.hasActiveFx()) {
+            return;
+        }
         if(this.isSlid){
             this.afterSlideIn();
             skipAnim = true;