| Index: Source/devtools/front_end/sdk/DefaultScriptMapping.js
|
| diff --git a/Source/devtools/front_end/sdk/DefaultScriptMapping.js b/Source/devtools/front_end/sdk/DefaultScriptMapping.js
|
| index 2a3839091b8bc5a013ecab87217f75413c1e74f1..43d8b9daeb1e085476b5b12a1e6dc6db7700f125 100644
|
| --- a/Source/devtools/front_end/sdk/DefaultScriptMapping.js
|
| +++ b/Source/devtools/front_end/sdk/DefaultScriptMapping.js
|
| @@ -38,7 +38,7 @@ WebInspector.DefaultScriptMapping = function(debuggerModel, workspace)
|
| {
|
| this._debuggerModel = debuggerModel;
|
| this._workspace = workspace;
|
| - this._projectId = "debugger:" + debuggerModel.target().id();
|
| + this._projectId = WebInspector.DefaultScriptMapping.projectIdForTarget(debuggerModel.target());
|
| this._projectDelegate = new WebInspector.DebuggerProjectDelegate(this._workspace, this._projectId, WebInspector.projectTypes.Debugger);
|
| debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjectCleared, this._debuggerReset, this);
|
| this._debuggerReset();
|
| @@ -123,6 +123,15 @@ WebInspector.DefaultScriptMapping.prototype = {
|
| }
|
|
|
| /**
|
| + * @param {!WebInspector.Target} target
|
| + * @return {string}
|
| + */
|
| +WebInspector.DefaultScriptMapping.projectIdForTarget = function(target)
|
| +{
|
| + return "debugger:" + target.id();
|
| +}
|
| +
|
| +/**
|
| * @constructor
|
| * @param {!WebInspector.Workspace} workspace
|
| * @param {string} id
|
|
|