diff --git a/src/core/resize.js b/src/core/resize.js index bfac545..49570a2 100644 --- a/src/core/resize.js +++ b/src/core/resize.js @@ -1,5 +1,6 @@ import throttle from '../lib/throttle'; +/* eslint-disable no-underscore-dangle */ export default { data() { return { @@ -31,7 +32,7 @@ export default { }, methods: { - $_change_video_resolution() { + _change_video_resolution() { this.width = this.$_innerWidth(); }, $_innerWidth() { @@ -44,12 +45,13 @@ export default { }, beforeMount() { - this.$_change_video_resolution(); + this._change_video_resolution(); }, mounted() { - window.addEventListener('resize', throttle(this.$_change_video_resolution, 250)); + window.addEventListener('resize', throttle(this._change_video_resolution, 250)); }, beforeUnmount() { - window.removeEventListener('resize', throttle(this.$_change_video_resolution, 250)); + window.removeEventListener('resize', throttle(this._change_video_resolution, 250)); }, }; +/* eslint-enable no-underscore-dangle */