| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview 'settings-edit-dictionary-page' is a sub-page for editing | 6 * @fileoverview 'settings-edit-dictionary-page' is a sub-page for editing |
| 7 * the "dictionary" of custom words used for spell check. | 7 * the "dictionary" of custom words used for spell check. |
| 8 */ | 8 */ |
| 9 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-edit-dictionary-page', | 10 is: 'settings-edit-dictionary-page', |
| 11 | 11 |
| 12 behaviors: [settings.GlobalScrollTargetBehavior], | 12 behaviors: [settings.GlobalScrollTargetBehavior], |
| 13 | 13 |
| 14 properties: { | 14 properties: { |
| 15 /** @private {string} */ | 15 /** @private {string} */ |
| 16 newWordValue_: String, | 16 newWordValue_: String, |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Needed by GlobalScrollTargetBehavior. | 19 * Needed by GlobalScrollTargetBehavior. |
| 20 * @override | 20 * @override |
| 21 */ | 21 */ |
| 22 subpageRoute: { | 22 subpageRoute: { |
| 23 type: Object, | 23 type: Object, |
| 24 value: settings.Route.EDIT_DICTIONARY, | 24 value: settings.routes.EDIT_DICTIONARY, |
| 25 }, | 25 }, |
| 26 | 26 |
| 27 /** @private {!Array<string>} */ | 27 /** @private {!Array<string>} */ |
| 28 words_: { | 28 words_: { |
| 29 type: Array, | 29 type: Array, |
| 30 value: function() { | 30 value: function() { |
| 31 return []; | 31 return []; |
| 32 }, | 32 }, |
| 33 }, | 33 }, |
| 34 }, | 34 }, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 /** | 137 /** |
| 138 * Checks if any words exists in the dictionary. | 138 * Checks if any words exists in the dictionary. |
| 139 * @private | 139 * @private |
| 140 * @return {boolean} | 140 * @return {boolean} |
| 141 */ | 141 */ |
| 142 hasWords_: function() { | 142 hasWords_: function() { |
| 143 return this.words_.length > 0; | 143 return this.words_.length > 0; |
| 144 } | 144 } |
| 145 }); | 145 }); |
| OLD | NEW |