Skip to content

Commit 2353737

Browse files
authored
Remove the if statement
The watcher does not trigger if the new & old value is same anyway
1 parent 389212e commit 2353737

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/vue-numeric.vue

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,10 @@ export default {
266266
267267
/**
268268
* Immediately reflect separator changes
269-
* @param {String} newValue
270-
* @param {String} oldValue
271269
*/
272-
separator (newValue, oldValue) {
273-
if (newValue !== oldValue) {
274-
this.process(this.valueNumber)
275-
this.amount = this.format(this.valueNumber)
276-
}
270+
separator () {
271+
this.process(this.valueNumber)
272+
this.amount = this.format(this.valueNumber)
277273
}
278274
},
279275

0 commit comments

Comments
 (0)