B2G/gecko/browser/devtools/commandline/CmdAddon.jsm
/**
       * Enables the addon in the passed list which has a name that matches
       * according to the passed name comparer, and resolves the promise which
       * is the scope (this) of this function to display the result of this
       * enable attempt.
       */
Enables the addon in the passed list which has a name that matches
according to the passed name comparer, and resolves the promise which
is the scope (this) of this function to display the result of this
enable attempt.
Enables the addon in the passed list which has a name that matches according to the passed name comparer and resolves the promise which is the scope ( this ) of this function to display the result of this enable attempt .
function enable(aName, addons) {
        let addon = null;
        addons.some(function(candidate) {
          if (candidate.name == aName) {
            addon = candidate;
            return true;
          } else {
            return false;
          }
        });
        let name = representAddon(addon);
        if (!addon.userDisabled) {
          this.resolve("<![CDATA[" +
            gcli.lookupFormat("addonAlreadyEnabled", [name]) + "]]>");
        } else {
          addon.userDisabled = false;
          this.resolve("<![CDATA[" +
            gcli.lookupFormat("addonEnabled", [name]) + "]]>");
        }
      }
function enable ( aName , addons ) { let addon = null ; addons . some ( function ( candidate ) { if ( candidate . name == aName ) { addon = candidate ; return true ; } else { return false ; } } ) ; let name = representAddon ( addon ) ; if ( ! addon . userDisabled ) { this . resolve ( "<![CDATA[" + gcli . lookupFormat ( "addonAlreadyEnabled" , [ name ] ) + "]]>" ) ; } else { addon . userDisabled = false ; this . resolve ( "<![CDATA[" + gcli . lookupFormat ( "addonEnabled" , [ name ] ) + "]]>" ) ; } }
Enables the addon in the passed list which has a name that matches
 according to the passed name comparer, and resolves the promise which
 is the scope (this) of this function to display the result of this
 enable attempt.
Enables the addon in the passed list which has a name that matches according to the passed name comparer and resolves the promise which is the scope ( this ) of this function to display the result of this enable attempt .
// Find the add-on. // nl-nl: {$1} is ingeschakeld.