mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Merge pull request #1632 from spicyj/img-load-error
Fix onLoad and onError on images
This commit is contained in:
commit
87bcbff218
1 file changed
+2
-2
@@ -44,8 +44,8 @@ var ReactDOMImg = ReactCompositeComponent.createClass({
|
||||
},
|
||||
|
||||
componentDidMount: function() {
|
||||
this.trapBubbledEvent(EventConstants.topLevelTypes.topReset, 'load');
|
||||
this.trapBubbledEvent(EventConstants.topLevelTypes.topSubmit, 'error');
|
||||
this.trapBubbledEvent(EventConstants.topLevelTypes.topLoad, 'load');
|
||||
this.trapBubbledEvent(EventConstants.topLevelTypes.topError, 'error');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user