This commit is contained in:
Paulus Schoutsen 2017-01-30 00:54:56 -08:00
parent 94cde37aaa
commit 0a45e0e95b
3 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ Polymer({
handleSetState: function () { handleSetState: function () {
var attr; var attr;
var attrRaw = this._stateAttributes.replace(/^\s+|\s+$/g, '') var attrRaw = this._stateAttributes.replace(/^\s+|\s+$/g, '');
try { try {
attr = attrRaw ? attr = attrRaw ?
JSON.parse(attrRaw) : {}; JSON.parse(attrRaw) : {};

View File

@ -110,7 +110,7 @@ Polymer({
this.armHomeButtonVisible = newVal.state === 'disarmed'; this.armHomeButtonVisible = newVal.state === 'disarmed';
this.armAwayButtonVisible = newVal.state === 'disarmed'; this.armAwayButtonVisible = newVal.state === 'disarmed';
} }
if (oldval) { if (oldVal) {
this.async(function () { this.async(function () {
this.fire('iron-resize'); this.fire('iron-resize');
}.bind(this), 500); }.bind(this), 500);

View File

@ -47,7 +47,7 @@ Polymer({
this.callService('lock', { code: this.enteredCode }); this.callService('lock', { code: this.enteredCode });
}, },
stateObjChanged: function (newVal, oldVal) { stateObjChanged: function (newVal) {
if (newVal) { if (newVal) {
this.isLocked = newVal.state === 'locked'; this.isLocked = newVal.state === 'locked';
} }