Skip to content

Commit

Permalink
Syntax error fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hansi90 committed Oct 11, 2017
1 parent 3aec9af commit 6a171e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/fields/optional/fieldCleave.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ export default {
maxLength: 0
}));
if (this.cleave.properties && this.cleave.properties.hasOwnProperty('result')) {
this.$watch('cleave.properties.result', () => {
if (this.cleave.properties && this.cleave.properties.hasOwnProperty("result")) {
this.$watch("cleave.properties.result", () => {
this.value = this.cleave.properties.result;
});
} else {
this.$el.addEventListener('input', this.inputChange)
this.$el.addEventListener("input", this.inputChange);
}
} else {
Expand All @@ -67,7 +67,7 @@ export default {
beforeDestroy() {
if (this.cleave) {
this.cleave.destroy();
this.$el.removeEventListener('input', this.inputChange);
this.$el.removeEventListener("input", this.inputChange);
}
}
Expand Down

0 comments on commit 6a171e3

Please sign in to comment.