Рефакторинг

This commit is contained in:
Book Pauk
2019-02-02 21:36:35 +07:00
parent 6a70994473
commit 614a2b9409

View File

@@ -28,7 +28,7 @@ export default @Component({
},
watch: {
sliderValue: function(newValue) {
this.debouncedEmitPosChange(newValue);
this.$emit('book-pos-changed', {bookPos: newValue});
},
},
})
@@ -39,10 +39,6 @@ class SetPositionPage extends Vue {
created() {
this.commit = this.$store.commit;
this.reader = this.$store.state.reader;
this.debouncedEmitPosChange = _.debounce((newValue) => {
this.$emit('book-pos-changed', {bookPos: newValue});
}, 300);
}
formatTooltip(val) {