Рефакторинг

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