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

Unified Diff: chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js

Issue 8372100: [filebrowser] Fix the bug with leadIndex being null in ListSingleSelectionModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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: chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js
===================================================================
--- chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js (revision 106036)
+++ chrome/browser/resources/shared/js/cr/ui/list_single_selection_model.js (working copy)
@@ -52,7 +52,8 @@
if (i != oldSelectedIndex) {
this.beginChange();
- this.selectedIndex_ = i
+ this.selectedIndex_ = i;
+ this.leadIndex_ = this.anchorIndex_ = i;
this.endChange();
}
},
« 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