Skip to content

Commit

Permalink
Merge pull request #224 from monkeyWangs/master
Browse files Browse the repository at this point in the history
fixed: function _lazyLoadHandler thow error: Uncaught ReferenceError:…
  • Loading branch information
hilongjw authored Feb 1, 2018
2 parents 10efc7f + e664110 commit ca05689
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default function (Vue) {
_lazyLoadHandler () {
console.log(this)
let catIn = false
this.ListenerQueue.forEach(listener => {
this.ListenerQueue.forEach((listener, index)=> {
if (listener.state.loaded) return
catIn = listener.checkInView()
catIn && (listener.load(() => this.ListenerQueue.splice(index, 1)))
Expand Down
Loading

0 comments on commit ca05689

Please sign in to comment.