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 luckyadam committed Dec 31, 2019
1 parent ac039e8 commit 1d17269
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 1d17269

Please sign in to comment.