Chromium Code Reviews| Index: Source/devtools/front_end/Runtime.js |
| diff --git a/Source/devtools/front_end/Runtime.js b/Source/devtools/front_end/Runtime.js |
| index 767552393e2ed7560b68c6aa3c839d0d03923817..364bbd560b9ee49e243a06b0429720969de0c042 100644 |
| --- a/Source/devtools/front_end/Runtime.js |
| +++ b/Source/devtools/front_end/Runtime.js |
| @@ -116,6 +116,15 @@ var Runtime = function(descriptors) |
| this._descriptorsMap[descriptors[i]["name"]] = descriptors[i]; |
| } |
| +/** |
| + * @param {string} moduleName |
| + * @return {!Worker} |
| + */ |
| +Runtime.startWorker = function(moduleName) |
| +{ |
| + return new Worker(moduleName + "/_module.js"); |
| +} |
| + |
| Runtime.prototype = { |
| /** |
| * @param {!Array.<string>} configuration |
| @@ -434,9 +443,8 @@ Runtime.Module.prototype = { |
| var dependencies = this._descriptor.dependencies; |
| for (var i = 0; dependencies && i < dependencies.length; ++i) |
| this._manager.loadModule(dependencies[i]); |
| - var scripts = this._descriptor.scripts; |
| - for (var i = 0; scripts && i < scripts.length; ++i) |
| - loadScript(this._name + "/" + scripts[i]); |
| + if (this._descriptor.scripts) |
|
lushnikov
2014/08/08 12:21:25
any case when we don't have scripts?
apavlov
2014/08/08 12:24:02
This is currently the case for the core module (Ma
|
| + loadScript(this._name + "/_module.js"); |
| this._isLoading = false; |
| this._loaded = true; |
| } |