Chromium Code Reviews| Index: Source/devtools/front_end/sources/SourcesView.js |
| diff --git a/Source/devtools/front_end/sources/SourcesView.js b/Source/devtools/front_end/sources/SourcesView.js |
| index a384800d3274f73260cd666b400f95cb2bf31ced..fd01a972bbbf2eed35627c26d23cd9143d24f688 100644 |
| --- a/Source/devtools/front_end/sources/SourcesView.js |
| +++ b/Source/devtools/front_end/sources/SourcesView.js |
| @@ -77,7 +77,7 @@ WebInspector.SourcesView = function(workspace, sourcesPanel) |
| event.returnValue = WebInspector.UIString("DevTools have unsaved changes that will be permanently lost."); |
| WebInspector.inspectorView.showPanel("sources"); |
| for (var i = 0; i < unsavedSourceCodes.length; ++i) |
| - WebInspector.panels.sources.showUISourceCode(unsavedSourceCodes[i]); |
| + WebInspector.inspectorView.panel("sources").showUISourceCode(unsavedSourceCodes[i]); |
|
pfeldman
2014/05/06 19:57:14
You should plumb delegates instead.
apavlov
2014/05/07 10:26:13
Agree. My point was to do mechanical changes first
|
| } |
| window.addEventListener("beforeunload", handleBeforeUnload, true); |