function addonsManager_getCategoryId(aSpec) {
    var spec = aSpec || { };
    var category = spec.category;

    if (!category)
      throw new Error(arguments.callee.name + ": Category not specified.");

    return category.getNode().id;
  }
function addonsManager_getCategoryId(aSpec) {
    var spec = aSpec || { };
    var category = spec.category;

    if (!category)
      throw new Error(arguments.callee.name + ": Category not specified.");

    return category.getNode().id;
  }
function addonsManager_getCategoryId ( aSpec ) { var spec = aSpec || { } ; var category = spec . category ; if ( ! category ) throw new Error ( arguments . callee . name + ": Category not specified." ) ; return category . getNode ( ) . id ; }
Get the ID of the given category element

@param {object} aSpec
Information for getting a category
Elements: category - Category to get the id from

@returns Category Id
@type {string}
Get the ID of the given category element
Returns the category id for the given add - ons