*/
WebInspector.CompilerScriptMapping = function(debuggerModel, workspace, networkWorkspaceBinding)
{
+ this._target = debuggerModel.target();
this._debuggerModel = debuggerModel;
this._workspace = workspace;
this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceCodeAdded, this._uiSourceCodeAddedToWorkspace, this);
if (uiSourceCode)
this._bindUISourceCode(uiSourceCode);
else
- WebInspector.console.showErrorMessage(WebInspector.UIString("Failed to locate workspace file mapped to URL %s from source map %s", sourceURL, sourceMap.url()));
+ this._target.consoleModel.showErrorMessage(WebInspector.UIString("Failed to locate workspace file mapped to URL %s from source map %s", sourceURL, sourceMap.url()));
}
script.updateLocations();
}
*/
_bindUISourceCode: function(uiSourceCode)
{
- uiSourceCode.setSourceMapping(this);
+ uiSourceCode.setSourceMappingForTarget(this._target, this);
},
/**
*/
_unbindUISourceCode: function(uiSourceCode)
{
- uiSourceCode.setSourceMapping(null);
+ uiSourceCode.setSourceMappingForTarget(this._target, null);
},
/**