[fix] avoid eslint-plugin-react@3.6.0 bug

This commit is contained in:
Nicolas Gallagher
2015-10-18 11:23:29 -07:00
parent 292f045c52
commit 7f5a2807e2
2 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -25,10 +25,10 @@
"babel-eslint": "^4.1.1", "babel-eslint": "^4.1.1",
"babel-loader": "^5.3.2", "babel-loader": "^5.3.2",
"babel-runtime": "^5.8.20", "babel-runtime": "^5.8.20",
"eslint": "^1.3.1", "eslint": "^1.7.1",
"eslint-config-standard": "^4.3.1", "eslint-config-standard": "^4.3.1",
"eslint-config-standard-react": "^1.0.4", "eslint-config-standard-react": "^1.0.4",
"eslint-plugin-react": "^3.3.1", "eslint-plugin-react": "^3.6.0",
"eslint-plugin-standard": "^1.3.0", "eslint-plugin-standard": "^1.3.0",
"karma": "^0.13.9", "karma": "^0.13.9",
"karma-browserstack-launcher": "^0.1.5", "karma-browserstack-launcher": "^0.1.5",
+2 -3
View File
@@ -55,10 +55,9 @@ const styles = StyleSheet.create({
class Image extends React.Component { class Image extends React.Component {
constructor(props, context) { constructor(props, context) {
super(props, context) super(props, context)
const { uri } = props.source
// state // state
this.state = { status: props.source.uri ? STATUS_PENDING : STATUS_IDLE } this.state = { status: uri ? STATUS_PENDING : STATUS_IDLE }
// autobinding // autobinding
this._onError = this._onError.bind(this) this._onError = this._onError.bind(this)
this._onLoad = this._onLoad.bind(this) this._onLoad = this._onLoad.bind(this)