| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 { | 175 { |
| 176 var styleFile = this._styleFiles.get(uiSourceCode); | 176 var styleFile = this._styleFiles.get(uiSourceCode); |
| 177 if (!styleFile) | 177 if (!styleFile) |
| 178 return; | 178 return; |
| 179 styleFile.dispose(); | 179 styleFile.dispose(); |
| 180 this._styleFiles.delete(uiSourceCode); | 180 this._styleFiles.delete(uiSourceCode); |
| 181 }, | 181 }, |
| 182 | 182 |
| 183 _unbindAllUISourceCodes: function() | 183 _unbindAllUISourceCodes: function() |
| 184 { | 184 { |
| 185 for (var styleFile of this._styleFiles.keys()) | 185 for (var styleFile of this._styleFiles.values()) |
| 186 styleFile.dispose(); | 186 styleFile.dispose(); |
| 187 this._styleFiles.clear(); | 187 this._styleFiles.clear(); |
| 188 this._urlToHeadersByFrameId = new Map(); | 188 this._urlToHeadersByFrameId = new Map(); |
| 189 }, | 189 }, |
| 190 | 190 |
| 191 /** | 191 /** |
| 192 * @param {!WebInspector.Event} event | 192 * @param {!WebInspector.Event} event |
| 193 */ | 193 */ |
| 194 _uiSourceCodeAddedToWorkspace: function(event) | 194 _uiSourceCodeAddedToWorkspace: function(event) |
| 195 { | 195 { |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 this._uiSourceCode.addRevision(content); | 393 this._uiSourceCode.addRevision(content); |
| 394 delete this._isAddingRevision; | 394 delete this._isAddingRevision; |
| 395 }, | 395 }, |
| 396 | 396 |
| 397 dispose: function() | 397 dispose: function() |
| 398 { | 398 { |
| 399 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); | 399 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyCommitted, this._workingCopyCommitted, this); |
| 400 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); | 400 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.
WorkingCopyChanged, this._workingCopyChanged, this); |
| 401 } | 401 } |
| 402 } | 402 } |
| OLD | NEW |