B2G/gecko/browser/components/tabview/groupitems.js
// Closes the groupItem and all of its children.
Closes the groupItem and all of its children.
Closes the groupItem and all of its children .
function GroupItem_closeAll() {
    if (this._children.length > 0) {
      this._unfreezeItemSize();
      this._children.forEach(function(child) {
        iQ(child.container).hide();
      });
      iQ(this.container).animate({
         opacity: 0,
         "transform": "scale(.3)",
      }, {
        duration: 170,
        complete: function() {
          iQ(this).hide();
        }
      });
      this.droppable(false);
      this.removeTrenches();
      this._createUndoButton();
    } else
      this.close();
    this._makeLastActiveGroupItemActive();
  }
function GroupItem_closeAll ( ) { if ( this . _children . length > 0 ) { this . _unfreezeItemSize ( ) ; this . _children . forEach ( function ( child ) { iQ ( child . container ) . hide ( ) ; } ) ; iQ ( this . container ) . animate ( { opacity : 0 , "transform" : "scale(.3)" , } , { duration : 170 , complete : function ( ) { iQ ( this ) . hide ( ) ; } } ) ; this . droppable ( false ) ; this . removeTrenches ( ) ; this . _createUndoButton ( ) ; } else this . close ( ) ; this . _makeLastActiveGroupItemActive ( ) ; }
Closes the groupItem and all of its children.
Closes the groupItem and all of its children .