@samitouri / QOS-React-2 / commits / 3e34739cb9

Fix onLoad and onError on images

Fixes bug introduced in c62c2c5. Test Plan: Tested that the onLoad event was properly triggered on an image. Didn't test onError but I can only assume that it works equally well.

Ben Alpert committed May 30, 2014 at 16:53 UTC 3e34739cb9148c76f0a338ab694f8963d84b1c56
1 file changed +2 -2
src/browser/ui/dom/components/ReactDOMImg.js
+2 -2
@@ -44,8 +44,8 @@ var ReactDOMImg = ReactCompositeComponent.createClass({
44 },
45
46 componentDidMount: function() {
47 - this.trapBubbledEvent(EventConstants.topLevelTypes.topReset, 'load');
48 - this.trapBubbledEvent(EventConstants.topLevelTypes.topSubmit, 'error');
47 + this.trapBubbledEvent(EventConstants.topLevelTypes.topLoad, 'load');
48 + this.trapBubbledEvent(EventConstants.topLevelTypes.topError, 'error');
49 }
50 });
51