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

Unified Diff: chrome/browser/resources/options/language_list.js

Issue 9705015: Making the selectedIndex property setters of ListSelectionModel and ListSingleSelectionModel behave… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | chrome/browser/resources/shared/js/cr/ui/list_selection_model.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/language_list.js
diff --git a/chrome/browser/resources/options/language_list.js b/chrome/browser/resources/options/language_list.js
index 3cbcb752a91acfa93e8ea97d975b8732fbc0df99..e66079a176884335e73305a7f7052599c0bc391d 100644
--- a/chrome/browser/resources/options/language_list.js
+++ b/chrome/browser/resources/options/language_list.js
@@ -405,8 +405,6 @@ cr.define('options', function() {
// valid after the data model is loaded. This is neeeded to keep
// the selected language after the languge is added or removed.
this.selectionModel.selectedIndex = originalSelectedIndex;
- // The lead index should be updated too.
- this.selectionModel.leadIndex = originalSelectedIndex;
} else if (this.dataModel.length > 0){
// Otherwise, select the first item if it's not empty.
// Note that ListSingleSelectionModel won't select an item
« no previous file with comments | « no previous file | chrome/browser/resources/shared/js/cr/ui/list_selection_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698