OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); | 403 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); |
404 if (debuggerModel) { | 404 if (debuggerModel) { |
405 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.
ParsedScriptSource, this._parsedScriptSource, this); | 405 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.
ParsedScriptSource, this._parsedScriptSource, this); |
406 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.
FailedToParseScriptSource, this._parsedScriptSource, this); | 406 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.
FailedToParseScriptSource, this._parsedScriptSource, this); |
407 } | 407 } |
408 var cssModel = WebInspector.CSSStyleModel.fromTarget(target); | 408 var cssModel = WebInspector.CSSStyleModel.fromTarget(target); |
409 if (cssModel) { | 409 if (cssModel) { |
410 cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Style
SheetAdded, this._styleSheetAdded, this); | 410 cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Style
SheetAdded, this._styleSheetAdded, this); |
411 cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Style
SheetRemoved, this._styleSheetRemoved, this); | 411 cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Style
SheetRemoved, this._styleSheetRemoved, this); |
412 } | 412 } |
| 413 delete target[WebInspector.NetworkProject._networkProjectSymbol]; |
413 }, | 414 }, |
414 | 415 |
415 _reset: function() | 416 _reset: function() |
416 { | 417 { |
417 this._processedURLs = {}; | 418 this._processedURLs = {}; |
418 for (var projectId in this._projectDelegates) | 419 for (var projectId in this._projectDelegates) |
419 this._projectDelegates[projectId].reset(); | 420 this._projectDelegates[projectId].reset(); |
420 this._projectDelegates = {}; | 421 this._projectDelegates = {}; |
421 }, | 422 }, |
422 | 423 |
423 __proto__: WebInspector.SDKObject.prototype | 424 __proto__: WebInspector.SDKObject.prototype |
424 } | 425 } |
OLD | NEW |