X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FLayoutRegion.js;h=55a88b2aa9146c426a8dc7f253419312b31e859a;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=816679eb5882e4aba8f48a8d63de6dd6ff79e155;hpb=a8248622b3c15aa12f8537e5bfa81aaac15c4f39;p=roojs1 diff --git a/Roo/LayoutRegion.js b/Roo/LayoutRegion.js index 816679eb58..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 || skipCheck){ + if(skipCheck || this.fireEvent("beforecollapse", this) != false){ this.collapsed = true; if(this.split){