B2G/gecko/browser/devtools/styleeditor/StyleEditor.jsm
/**
   * Retrieve the index (order) of stylesheet in the document.
   *
   * @return number
   */
Retrieve the index (order) of stylesheet in the document.
@return number
Retrieve the index ( order ) of stylesheet in the document . @return number
get styleSheetIndex()
  {
    let document = this.contentDocument;
    if (this._styleSheetIndex == -1) {
      for (let i = 0; i < document.styleSheets.length; ++i) {
        if (document.styleSheets[i] == this.styleSheet) {
          this._styleSheetIndex = i;
          break;
        }
      }
    }
    return this._styleSheetIndex;
  }
get styleSheetIndex ( ) { let document = this . contentDocument ; if ( this . _styleSheetIndex == - 1 ) { for ( let i = 0 ; i < document . styleSheets . length ; ++ i ) { if ( document . styleSheets [ i ] == this . styleSheet ) { this . _styleSheetIndex = i ; break ; } } } return this . _styleSheetIndex ; }
Retrieve the index (order) of stylesheet in the document.
Retrieve the index ( order ) of stylesheet in the document .