X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FLayoutRegion.js;h=55a88b2aa9146c426a8dc7f253419312b31e859a;hb=fc32d3336ffe6a4ac93549dab21fd04b7d7056d3;hp=38cc0aaef9e1cec18426f84c712accef869b15c6;hpb=84b28b3f14417e1d9b45c4ca9dee1daaff4d781e;p=roojs1 diff --git a/Roo/LayoutRegion.js b/Roo/LayoutRegion.js index 38cc0aaef9..55a88b2aa9 100644 --- a/Roo/LayoutRegion.js +++ b/Roo/LayoutRegion.js @@ -302,12 +302,12 @@ Roo.extend(Roo.LayoutRegion, Roo.BasicLayoutRegion, { * Collapses this region. * @param {Boolean} skipAnim (optional) true to collapse the element without animation (if animate is true) */ - collapse : function(skipAnim, skipCheck = false){ + collapse : function(skipAnim, skipCheck){ if(this.collapsed) { return; } - if(this.fireEvent("beforecollapse", this) != false){ + if(skipCheck || this.fireEvent("beforecollapse", this) != false){ this.collapsed = true; if(this.split){