| 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};
|
|
|
| });
|
| -
|
|
|