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 24, 2019
1 parent b83d8b1 commit 4d3e43b
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 4d3e43b

Please sign in to comment.