roojs-core.js
[roojs1] / Roo / LayoutRegion.js
index 13b9087..55a88b2 100644 (file)
@@ -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){
+    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){