Skip to content

Commit

Permalink
fix(components): h5 image 删除无关代码 (#4998)
Browse files Browse the repository at this point in the history
* h5 image在unmount时取消IntersectionObserver监听

* 删除无用代码
  • Loading branch information
Lostsory authored and ZakaryCode committed Dec 15, 2019
1 parent 172e48b commit 6d05666
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/taro-components/src/components/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Image extends Nerv.Component {
// 异步 api 关系
if (entries[entries.length - 1].isIntersecting) {
this.setState({ isLoaded: true }, () => {
this.observer.unobserve(this.imgRef)
Nerv.findDOMNode(this).children[0].src = this.props.src
})
}
Expand Down

0 comments on commit 6d05666

Please sign in to comment.