| Index: Source/devtools/front_end/Runtime.js
|
| diff --git a/Source/devtools/front_end/Runtime.js b/Source/devtools/front_end/Runtime.js
|
| index fa9422bf7565d782bfe38af985b31a8f8b6d1093..817c59379b068c965dc881a3e982fce59a256b0f 100644
|
| --- a/Source/devtools/front_end/Runtime.js
|
| +++ b/Source/devtools/front_end/Runtime.js
|
| @@ -245,7 +245,7 @@
|
| var content;
|
| // FIXME: This is a temp workaround to avoid core module loading attempts in the release mode.
|
| // It should be removed when the new application loader is implemented.
|
| - if (moduleName === "main" || !this._coreModules.hasOwnProperty(moduleName))
|
| + if (!this._coreModules.hasOwnProperty(moduleName))
|
| content = loadResource(moduleName + "/module.json");
|
| else
|
| content = "{}";
|
| @@ -524,11 +524,6 @@
|
| for (var i = 0; extensions && i < extensions.length; ++i)
|
| this._manager._extensions.push(new Runtime.Extension(this, extensions[i]));
|
| this._loaded = false;
|
| -
|
| - // FIXME: This is a temp workaround to avoid core module loading attempts in the release mode.
|
| - // It should be removed when the new application loader is implemented.
|
| - if (this._manager._coreModules.hasOwnProperty(this._name))
|
| - this._loaded = true;
|
| }
|
|
|
| Runtime.Module.prototype = {
|
| @@ -559,7 +554,10 @@
|
| this._manager.loadModule(dependencies[i]);
|
| if (this._descriptor.scripts) {
|
| if (Runtime.isReleaseMode()) {
|
| - loadScript(this._name + ".js");
|
| + // FIXME: This is a temp workaround to avoid core module loading attempts in the release mode.
|
| + // It should be removed when the new application loader is implemented.
|
| + if (!this._manager._coreModules.hasOwnProperty(this._name))
|
| + loadScript(this._name + ".js");
|
| } else {
|
| var scripts = this._descriptor.scripts;
|
| for (var i = 0; i < scripts.length; ++i)
|
|
|