* 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){