B2G/gecko/browser/components/tabview/groupitems.js
// Collapses the groupItem from the expanded "tray" mode.
Collapses the groupItem from the expanded "tray" mode.
Collapses the groupItem from the expanded " tray " mode .
function GroupItem_collapse() {
    if (this.expanded) {
      var z = this.getZ();
      var box = this.getBounds();
      let self = this;
      this.expanded.$tray
        .css({
          zIndex: z + 1
        })
        .animate({
          width:  box.width,
          height: box.height,
          top: box.top,
          left: box.left,
          opacity: 0
        }, {
          duration: 350,
          easing: "tabviewBounce",
          complete: function GroupItem_collapse_animate_complete() {
            iQ(this).remove();
            self._sendToSubscribers("collapsed");
          }
        });
      this.expanded.$shield.remove();
      this.expanded = null;
      this._children.forEach(function(child) {
        child.removeClass("stack-trayed");
      });
      this.arrange({z: z + 2});
      this._unfreezeItemSize({dontArrange: true});
    }
  }
function GroupItem_collapse ( ) { if ( this . expanded ) { var z = this . getZ ( ) ; var box = this . getBounds ( ) ; let self = this ; this . expanded . $tray . css ( { zIndex : z + 1 } ) . animate ( { width : box . width , height : box . height , top : box . top , left : box . left , opacity : 0 } , { duration : 350 , easing : "tabviewBounce" , complete : function GroupItem_collapse_animate_complete ( ) { iQ ( this ) . remove ( ) ; self . _sendToSubscribers ( "collapsed" ) ; } } ) ; this . expanded . $shield . remove ( ) ; this . expanded = null ; this . _children . forEach ( function ( child ) { child . removeClass ( "stack-trayed" ) ; } ) ; this . arrange ( { z : z + 2 } ) ; this . _unfreezeItemSize ( { dontArrange : true } ) ; } }
Collapses the groupItem from the expanded "tray" mode.
Collapses the groupItem from the expanded " tray " mode .