B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Briefly flash the variables that changed between pauses.
   */
Briefly flash the variables that changed between pauses.
Briefly flash the variables that changed between pauses .
function DVS_commitHierarchy() {
    for (let i in this._currHierarchy) {
      let currScope = this._currHierarchy[i];
      let prevScope = this._prevHierarchy[i];
      if (!prevScope) {
        continue;
      }
      for (let v in currScope.children) {
        let currVar = currScope.children[v];
        let prevVar = prevScope.children[v];
        let action = "";
        if (prevVar) {
          let prevValue = prevVar.valueLabel.getAttribute("value");
          let currValue = currVar.valueLabel.getAttribute("value");
          if (currValue != prevValue) {
            action = "changed";
          } else {
            action = "unchanged";
          }
        } else {
          action = "added";
        }
        if (action) {
          currVar.element.setAttribute(action, "");
          window.setTimeout(function() {
           currVar.element.removeAttribute(action);
          }, PROPERTY_VIEW_FLASH_DURATION);
        }
      }
    }
  }
function DVS_commitHierarchy ( ) { for ( let i in this . _currHierarchy ) { let currScope = this . _currHierarchy [ i ] ; let prevScope = this . _prevHierarchy [ i ] ; if ( ! prevScope ) { continue ; } for ( let v in currScope . children ) { let currVar = currScope . children [ v ] ; let prevVar = prevScope . children [ v ] ; let action = "" ; if ( prevVar ) { let prevValue = prevVar . valueLabel . getAttribute ( "value" ) ; let currValue = currVar . valueLabel . getAttribute ( "value" ) ; if ( currValue != prevValue ) { action = "changed" ; } else { action = "unchanged" ; } } else { action = "added" ; } if ( action ) { currVar . element . setAttribute ( action , "" ) ; window . setTimeout ( function ( ) { currVar . element . removeAttribute ( action ) ; } , PROPERTY_VIEW_FLASH_DURATION ) ; } } } }
Briefly flash the variables that changed between pauses.
Briefly flash the variables that changed between pauses .