| Index: chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
|
| diff --git a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
|
| index 0c82fd2e3e8b33f13a90cf620987cef466a820a6..ae45a31ed19c0827873df3ecaa5b5469e4e9c95c 100644
|
| --- a/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
|
| +++ b/chrome/browser/resources/chromeos/quick_unlock/pin_keyboard.js
|
| @@ -62,7 +62,7 @@ Polymer({
|
| */
|
| enablePassword: {
|
| type: Boolean,
|
| - value: false
|
| + value: false,
|
| },
|
|
|
| /**
|
| @@ -73,8 +73,10 @@ Polymer({
|
| */
|
| passwordElement: {
|
| type: Object,
|
| - value: function() { return this.$$('#pin-input'); },
|
| - observer: 'onPasswordElementAttached_'
|
| + value: function() {
|
| + return this.$.pinInput.inputElement;
|
| + },
|
| + observer: 'onPasswordElementAttached_',
|
| },
|
|
|
| /**
|
| @@ -85,7 +87,7 @@ Polymer({
|
| type: String,
|
| notify: true,
|
| value: '',
|
| - observer: 'onPinValueChange_'
|
| + observer: 'onPinValueChange_',
|
| },
|
|
|
| /**
|
| @@ -94,7 +96,7 @@ Polymer({
|
| */
|
| repeatBackspaceIntervalId_: {
|
| type: Number,
|
| - value: 0
|
| + value: 0,
|
| },
|
|
|
| /**
|
| @@ -103,7 +105,7 @@ Polymer({
|
| */
|
| startAutoBackspaceId_: {
|
| type: Number,
|
| - value: 0
|
| + value: 0,
|
| }
|
| },
|
|
|
| @@ -113,8 +115,11 @@ Polymer({
|
| * @private
|
| */
|
| onPasswordElementAttached_: function(inputElement) {
|
| - if (inputElement != this.$$('#pin-input'))
|
| - this.$$('#pin-input').hidden = true;
|
| + if (inputElement != this.$.pinInput.inputElement)
|
| + this.$.pinInput.hidden = true;
|
| + else
|
| + this.$.divider.hidden = true;
|
| +
|
| inputElement.addEventListener('input',
|
| this.handleInputChanged_.bind(this));
|
| },
|
|
|