B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Returns a custom class style for a type and a value.
   *
   * @param string | object aGrip
   *        The variable grip.
   *
   * @return string
   *         The css class style.
   */
Returns a custom class style for a type and a value.
@param string | object aGrip
The variable grip.

@return string
The css class style.
Returns a custom class style for a type and a value . @param string | object aGrip The variable grip . @return string The css class style .
function DVP__propertyColor(aGrip) {
    if (aGrip && "object" === typeof aGrip) {
      switch (aGrip.type) {
        case "undefined":
          return "token-undefined";
        case "null":
          return "token-null";
      }
    } else {
      switch (typeof aGrip) {
        case "string":
          return "token-string";
        case "boolean":
          return "token-boolean";
        case "number":
          return "token-number";
      }
    }
    return "token-other";
  }
function DVP__propertyColor ( aGrip ) { if ( aGrip && "object" === typeof aGrip ) { switch ( aGrip . type ) { case "undefined" : return "token-undefined" ; case "null" : return "token-null" ; } } else { switch ( typeof aGrip ) { case "string" : return "token-string" ; case "boolean" : return "token-boolean" ; case "number" : return "token-number" ; } } return "token-other" ; }
Returns a custom class style for a type and a value.
Returns a custom class style for a type and a value .