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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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
Index: chrome/browser/resources/options/language_dictionary_overlay_word_list.js
diff --git a/chrome/browser/resources/options/language_dictionary_overlay_word_list.js b/chrome/browser/resources/options/language_dictionary_overlay_word_list.js
index fbc868e1b36c750e657e7d30cb0d158f62290109..2f89115805e52bcc69cac7e2818baf9ba9bd6635 100644
--- a/chrome/browser/resources/options/language_dictionary_overlay_word_list.js
+++ b/chrome/browser/resources/options/language_dictionary_overlay_word_list.js
@@ -141,8 +141,8 @@ cr.define('options.dictionary_words', function() {
* @param {string} searchTerm The search term.
*/
search: function(searchTerm) {
- var filteredWordList = this.allWordsList_.filter(
- function(element, index, array) {
+ var filteredWordList =
+ this.allWordsList_.filter(function(element, index, array) {
return element.indexOf(searchTerm) > -1;
});
filteredWordList.push('');
@@ -228,8 +228,7 @@ cr.define('options.dictionary_words', function() {
*/
createItem: function(dictionaryWord) {
return new DictionaryWordsListItem(
- dictionaryWord,
- this.addDictionaryWord_.bind(this));
+ dictionaryWord, this.addDictionaryWord_.bind(this));
},
/** @override */
@@ -254,14 +253,11 @@ cr.define('options.dictionary_words', function() {
/** @override */
getInitialFocusableItem: function() {
- return /** @type {options.InlineEditableItem} */(
+ return /** @type {options.InlineEditableItem} */ (
this.getListItemByIndex(this.selectionModel.length - 1));
},
};
- return {
- DictionaryWordsList: DictionaryWordsList
- };
+ return {DictionaryWordsList: DictionaryWordsList};
});
-

Powered by Google App Engine
This is Rietveld 408576698