chore: suppress warning

This commit is contained in:
Benjy Cui 2016-01-07 18:04:05 +08:00
parent b72d18fd44
commit 632cd36e63
3 changed files with 8 additions and 0 deletions

View File

@ -14,7 +14,9 @@ function animate(node, show, transitionName, done) {
}
// Fix safari flash bug
/*eslint-disable */
node.style.display = show ? 'block' : 'none';
/*eslint-enable */
velocity(node, transitionName, {
duration: 240,
complete,

View File

@ -163,7 +163,9 @@ const AntUpload = React.createClass({
}
},
handleManualRemove(file) {
/*eslint-disable */
file.status = 'removed';
/*eslint-enable */
this.handleRemove(file);
},
onChange(info) {

View File

@ -40,9 +40,13 @@ export default React.createClass({
file.thumbUrl !== undefined) {
return;
}
/*eslint-disable */
file.thumbUrl = '';
/*eslint-enable */
previewFile(file.originFileObj, (previewDataUrl) => {
/*eslint-disable */
file.thumbUrl = previewDataUrl;
/*eslint-enable */
this.forceUpdate();
});
});