Fix dev state attributes

This commit is contained in:
Paulus Schoutsen 2016-09-15 20:49:53 -07:00
parent 792de4c6ac
commit bd6725d58d

View File

@ -150,7 +150,7 @@ Polymer({
handleSetState: function () { handleSetState: function () {
var attr; var attr;
try { try {
attr = this.stateAttributes ? JSON.parse(this._stateAttributes) : {}; attr = this._stateAttributes ? JSON.parse(this._stateAttributes) : {};
} catch (err) { } catch (err) {
/* eslint-disable no-alert */ /* eslint-disable no-alert */
alert('Error parsing JSON: ' + err); alert('Error parsing JSON: ' + err);