Skip to content

Commit

Permalink
Merge pull request facebook#1632 from spicyj/img-load-error
Browse files Browse the repository at this point in the history
Fix onLoad and onError on images
  • Loading branch information
petehunt committed May 31, 2014
2 parents 6ce1936 + 3e34739 commit 87bcbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/ui/dom/components/ReactDOMImg.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});

Expand Down

0 comments on commit 87bcbff

Please sign in to comment.