B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Retrieve the limit of messages for a specific category.
   *
   * @param number aCategory
   *        The category of messages you want to retrieve the limit for. See the
   *        CATEGORY_* constants.
   * @return number
   *         The number of messages allowed for the specific category.
   */
Retrieve the limit of messages for a specific category.
@param number aCategory
The category of messages you want to retrieve the limit for. See the
CATEGORY_* constants.
@return number
The number of messages allowed for the specific category.
Retrieve the limit of messages for a specific category . @param number aCategory The category of messages you want to retrieve the limit for . See the CATEGORY_ * constants . @return number The number of messages allowed for the specific category .
function Utils_logLimitForCategory(aCategory)
  {
    let logLimit = DEFAULT_LOG_LIMIT;
    try {
      let prefName = CATEGORY_CLASS_FRAGMENTS[aCategory];
      logLimit = Services.prefs.getIntPref("devtools.hud.loglimit." + prefName);
      logLimit = Math.max(logLimit, 1);
    }
    catch (e) { }
    return logLimit;
  }
function Utils_logLimitForCategory ( aCategory ) { let logLimit = DEFAULT_LOG_LIMIT ; try { let prefName = CATEGORY_CLASS_FRAGMENTS [ aCategory ] ; logLimit = Services . prefs . getIntPref ( "devtools.hud.loglimit." + prefName ) ; logLimit = Math . max ( logLimit , 1 ) ; } catch ( e ) { } return logLimit ; }
Retrieve the limit of messages for a specific category.
Retrieve the limit of messages for a specific category .