B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Splits the given console messages into groups based on their timestamps.
   */
Splits the given console messages into groups based on their timestamps.
Splits the given console messages into groups based on their timestamps .
function WCF_regroupOutput()
  {
    let nodes = this.outputNode.querySelectorAll(".hud-msg-node" +
      ":not(.hud-filtered-by-string):not(.hud-filtered-by-type)");
    let lastTimestamp;
    for (let i = 0, n = nodes.length; i < n; i++) {
      let thisTimestamp = nodes[i].timestamp;
      if (lastTimestamp != null &&
          thisTimestamp >= lastTimestamp + NEW_GROUP_DELAY) {
        nodes[i].classList.add("webconsole-new-group");
      }
      else {
        nodes[i].classList.remove("webconsole-new-group");
      }
      lastTimestamp = thisTimestamp;
    }
  }
function WCF_regroupOutput ( ) { let nodes = this . outputNode . querySelectorAll ( ".hud-msg-node" + ":not(.hud-filtered-by-string):not(.hud-filtered-by-type)" ) ; let lastTimestamp ; for ( let i = 0 , n = nodes . length ; i < n ; i ++ ) { let thisTimestamp = nodes [ i ] . timestamp ; if ( lastTimestamp != null && thisTimestamp >= lastTimestamp + NEW_GROUP_DELAY ) { nodes [ i ] . classList . add ( "webconsole-new-group" ) ; } else { nodes [ i ] . classList . remove ( "webconsole-new-group" ) ; } lastTimestamp = thisTimestamp ; } }
Splits the given console messages into groups based on their timestamps.
Splits the given console messages into groups based on their timestamps .
// Go through the nodes and adjust the placement of "webconsole-new-group" // classes.