B2G/gecko/browser/components/tabview/groupitems.js
// Set the Z order for the groupItem's container, as well as its children.
Set the Z order for the groupItem's container, as well as its children.
Set the Z order for the groupItem ' s container as well as its children .
function GroupItem_setZ(value) {
    this.zIndex = value;
    iQ(this.container).css({zIndex: value});
    var count = this._children.length;
    if (count) {
      var topZIndex = value + count + 1;
      var zIndex = topZIndex;
      var self = this;
      this._children.forEach(function(child) {
        if (child == self.getTopChild())
          child.setZ(topZIndex + 1);
        else {
          child.setZ(zIndex);
          zIndex--;
        }
      });
    }
  }
function GroupItem_setZ ( value ) { this . zIndex = value ; iQ ( this . container ) . css ( { zIndex : value } ) ; var count = this . _children . length ; if ( count ) { var topZIndex = value + count + 1 ; var zIndex = topZIndex ; var self = this ; this . _children . forEach ( function ( child ) { if ( child == self . getTopChild ( ) ) child . setZ ( topZIndex + 1 ) ; else { child . setZ ( zIndex ) ; zIndex -- ; } } ) ; } }
Set the Z order for the groupItem's container, as well as its children.
Set the Z order for the groupItem ' s container as well as its children .