editor/models/package.js
function() {
        var context, main, pkgRequireConfig, pkgRequire, that = this
        var d = Q.defer();

        if (!this.get("browser")) return Q();

        logger.log("Load", this.get("name"));
        getScript(this.url()+"/pkg-build.js", function(err) {
            if (!err) return d.resolve();

            logger.exception("Error loading plugin:", err);
            d.reject(err);
        });

        return d.promise.timeout(10000, "This addon took to long to load (> 10seconds)");
    }
function() {
        var context, main, pkgRequireConfig, pkgRequire, that = this
        var d = Q.defer();

        if (!this.get("browser")) return Q();

        logger.log("Load", this.get("name"));
        getScript(this.url()+"/pkg-build.js", function(err) {
            if (!err) return d.resolve();

            logger.exception("Error loading plugin:", err);
            d.reject(err);
        });

        return d.promise.timeout(10000, "This addon took to long to load (> 10seconds)");
    }
function ( ) { var context , main , pkgRequireConfig , pkgRequire , that = this var d = Q . defer ( ) ; if ( ! this . get ( "browser" ) ) return Q ( ) ; logger . log ( "Load" , this . get ( "name" ) ) ; getScript ( this . url ( ) + "/pkg-build.js" , function ( err ) { if ( ! err ) return d . resolve ( ) ; logger . exception ( "Error loading plugin:" , err ) ; d . reject ( err ) ; } ) ; return d . promise . timeout ( 10000 , "This addon took to long to load (> 10seconds)" ) ; }
Load the addon
Load the addon