Skip to content

Commit

Permalink
🐛 remove unneeded $el for list $ref (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
megasent1 authored Mar 26, 2020
1 parent 5b7152a commit 805d3e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/InnerSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default {
})
this.ro.observe(this.$refs.list)
Array.prototype.forEach.call(
this.$refs.list.$el.querySelectorAll('.slick-slide'),
this.$refs.list.querySelectorAll('.slick-slide'),
slide => {
slide.onfocus = this.pauseOnFocus ? this.onSlideFocus : null
slide.onblur = this.pauseOnFocus ? this.onSlideBlur : null
Expand Down Expand Up @@ -335,7 +335,7 @@ export default {
this.animationEndCallback = undefined
},
checkImagesLoad() {
let images = this.$refs.list.$el.querySelectorAll('.slick-slide img')
let images = this.$refs.list.querySelectorAll('.slick-slide img')
let imagesCount = images.length,
loadedCount = 0
Array.prototype.forEach.call(images, image => {
Expand Down

0 comments on commit 805d3e0

Please sign in to comment.