| OLD | NEW |
| 1 | 1 |
| 2 | 2 |
| 3 /** @polymerBehavior */ |
| 4 |
| 3 Polymer.IronControlState = { | 5 Polymer.IronControlState = { |
| 4 | 6 |
| 5 properties: { | 7 properties: { |
| 6 | 8 |
| 7 /** | 9 /** |
| 8 * If true, the element currently has focus. | 10 * If true, the element currently has focus. |
| 9 * | 11 * |
| 10 * @attribute focused | 12 * @attribute focused |
| 11 * @type boolean | 13 * @type boolean |
| 12 * @default false | 14 * @default false |
| (...skipping 15 matching lines...) Expand all Loading... |
| 28 */ | 30 */ |
| 29 disabled: { | 31 disabled: { |
| 30 type: Boolean, | 32 type: Boolean, |
| 31 value: false, | 33 value: false, |
| 32 notify: true, | 34 notify: true, |
| 33 observer: '_disabledChanged', | 35 observer: '_disabledChanged', |
| 34 reflectToAttribute: true | 36 reflectToAttribute: true |
| 35 }, | 37 }, |
| 36 | 38 |
| 37 _oldTabIndex: { | 39 _oldTabIndex: { |
| 38 type: String | 40 type: Number |
| 39 } | 41 } |
| 40 }, | 42 }, |
| 41 | 43 |
| 42 observers: [ | 44 observers: [ |
| 43 '_changedControlState(focused, disabled)' | 45 '_changedControlState(focused, disabled)' |
| 44 ], | 46 ], |
| 45 | 47 |
| 46 listeners: { | 48 listeners: { |
| 47 focus: '_focusHandler', | 49 focus: '_focusHandler', |
| 48 blur: '_blurHandler' | 50 blur: '_blurHandler' |
| (...skipping 29 matching lines...) Expand all Loading... |
| 78 | 80 |
| 79 _changedControlState: function() { | 81 _changedControlState: function() { |
| 80 // _controlStateChanged is abstract, follow-on behaviors may implement it | 82 // _controlStateChanged is abstract, follow-on behaviors may implement it |
| 81 if (this._controlStateChanged) { | 83 if (this._controlStateChanged) { |
| 82 this._controlStateChanged(); | 84 this._controlStateChanged(); |
| 83 } | 85 } |
| 84 } | 86 } |
| 85 | 87 |
| 86 }; | 88 }; |
| 87 | 89 |
| OLD | NEW |