Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1327)

Unified Diff: Source/devtools/front_end/NavigatorView.js

Issue 216193003: DevTools: Fix how navigator reveals and enames files after recent refactorings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/NavigatorView.js
diff --git a/Source/devtools/front_end/NavigatorView.js b/Source/devtools/front_end/NavigatorView.js
index 8c46864602fbf3e725c623cfc764252a9ce87d9d..2b556d94670ef518520a9dc21526d0e7492cd799 100644
--- a/Source/devtools/front_end/NavigatorView.js
+++ b/Source/devtools/front_end/NavigatorView.js
@@ -421,8 +421,7 @@ WebInspector.NavigatorView.prototype = {
return;
}
- var data = { uiSourceCode: uiSourceCode };
- this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemRenamed, data);
+ this.dispatchEventToListeners(WebInspector.NavigatorView.Events.ItemRenamed, uiSourceCode);
this._updateIcon(uiSourceCode);
this._sourceSelected(uiSourceCode, true)
}
@@ -476,6 +475,7 @@ WebInspector.NavigatorView.prototype = {
return;
}
this._sourceSelected(uiSourceCode, false);
+ this.revealUISourceCode(uiSourceCode, true);
this.rename(uiSourceCode, true);
}
},
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698