B2G/gecko/browser/components/tabview/groupitems.js
//   immediately - (bool) if true, no animation will be used
(bool) if true, no animation will be used
( bool ) if true no animation will be used
function GroupItem_close(options) {
    this.removeAll({dontClose: true});
    GroupItems.unregister(this);
    this._unfreezeItemSize({dontArrange: true});
    let self = this;
    let destroyGroup = function () {
      iQ(self.container).remove();
      if (self.$undoContainer) {
        self.$undoContainer.remove();
        self.$undoContainer = null;
      }
      self.removeTrenches();
      Items.unsquish();
      self._sendToSubscribers("close");
      GroupItems.updateGroupCloseButtons();
    }
    if (this.hidden || (options && options.immediately)) {
      destroyGroup();
    } else {
      iQ(this.container).animate({
        opacity: 0,
        "transform": "scale(.3)",
      }, {
        duration: 170,
        complete: destroyGroup
      });
    }
    this.deleteData();
  }
function GroupItem_close ( options ) { this . removeAll ( { dontClose : true } ) ; GroupItems . unregister ( this ) ; this . _unfreezeItemSize ( { dontArrange : true } ) ; let self = this ; let destroyGroup = function ( ) { iQ ( self . container ) . remove ( ) ; if ( self . $undoContainer ) { self . $undoContainer . remove ( ) ; self . $undoContainer = null ; } self . removeTrenches ( ) ; Items . unsquish ( ) ; self . _sendToSubscribers ( "close" ) ; GroupItems . updateGroupCloseButtons ( ) ; } if ( this . hidden || ( options && options . immediately ) ) { destroyGroup ( ) ; } else { iQ ( this . container ) . animate ( { opacity : 0 , "transform" : "scale(.3)" , } , { duration : 170 , complete : destroyGroup } ) ; } this . deleteData ( ) ; }
immediately - (bool) if true, no animation will be used
immediately - ( bool ) if true no animation will be used
// remove unfreeze event handlers, if item size is frozen