Skip to content

Commit

Permalink
hpreloadImgData
Browse files Browse the repository at this point in the history
  • Loading branch information
guonanci committed Jul 28, 2018
1 parent 0fc5476 commit a5bec8b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions README_CN.md
Expand Up @@ -2,6 +2,7 @@

[![Build Status](https://travis-ci.org/guonanci/react-images-viewer.svg?branch=master)](https://travis-ci.org/guonanci/react-images-viewer)
[![Coverage Status](https://coveralls.io/repos/github/guonanci/react-images-viewer/badge.svg?branch=master)](https://coveralls.io/github/guonanci/react-images-viewer?branch=master)
[![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)

一个简单易用,响应式,放大并查看一组图片的 React 库。

Expand Down
2 changes: 1 addition & 1 deletion dist/react-images-viewer.es.js
Expand Up @@ -911,7 +911,7 @@ var ImgsViewer = function (_Component) {
}, {
key: 'preloadImg',
value: function preloadImg(idx, onload) {
return this.prelaodImgData(this.props.imgs[idx], onload);
return this.preloadImgData(this.props.imgs[idx], onload);
}
}, {
key: 'preloadImgData',
Expand Down
2 changes: 1 addition & 1 deletion dist/react-images-viewer.js
Expand Up @@ -913,7 +913,7 @@
}, {
key: 'preloadImg',
value: function preloadImg(idx, onload) {
return this.prelaodImgData(this.props.imgs[idx], onload);
return this.preloadImgData(this.props.imgs[idx], onload);
}
}, {
key: 'preloadImgData',
Expand Down
2 changes: 1 addition & 1 deletion dist/react-images-viewer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/dist/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/dist/app_CN.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/dist/common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/ImgsViewer.js
Expand Up @@ -152,7 +152,7 @@ var ImgsViewer = function (_Component) {
}, {
key: 'preloadImg',
value: function preloadImg(idx, onload) {
return this.prelaodImgData(this.props.imgs[idx], onload);
return this.preloadImgData(this.props.imgs[idx], onload);
}
}, {
key: 'preloadImgData',
Expand Down
2 changes: 1 addition & 1 deletion src/ImgsViewer.js
Expand Up @@ -95,7 +95,7 @@ class ImgsViewer extends Component {
// ====================

preloadImg (idx, onload) {
return this.prelaodImgData(this.props.imgs[idx], onload)
return this.preloadImgData(this.props.imgs[idx], onload)
}
preloadImgData(data, onload) {
if(!data) return
Expand Down

0 comments on commit a5bec8b

Please sign in to comment.