No longer setting parseError attribute on error object

This was causing some JS exceptions to be logged
This commit is contained in:
Jeff Avallone 2014-12-29 16:32:08 -05:00
parent 5406487ae0
commit 99c4c078fb
1 changed files with 3 additions and 2 deletions

View File

@ -152,7 +152,7 @@ export default class Regexper {
this.error.innerHTML = '';
this.error.appendChild(document.createTextNode(message));
message.parseError = true;
this.parseError = true;
throw message;
})
@ -167,7 +167,7 @@ export default class Regexper {
if (message === 'Render cancelled') {
this._trackEvent('visualization', 'cancelled');
this.state = '';
} else if (message.parseError) {
} else if (this.parseError) {
this._trackEvent('visualization', 'parse error');
} else {
throw message;
@ -175,6 +175,7 @@ export default class Regexper {
})
.finally(() => {
this.runningParser = false;
this.parseError = false;
});
}
}