@samitouri / QOS-React / commits / 7f322b5a46

support onLoad synthetic event attribute on 'object' tags - useful for telling when SVGs embedded as objects have loaded

Matthew Hodgson committed Jan 5, 2016 at 02:28 UTC 7f322b5a46d95fc268c2535107cf034b1e65fc82
1 file changed +3
src/renderers/dom/shared/ReactDOMComponent.js
+3
@@ -265,6 +265,7 @@ function trapBubbledEventsLocal() {
265
266 switch (inst._tag) {
267 case 'iframe':
268 + case 'object':
269 inst._wrapperState.listeners = [
270 ReactBrowserEventEmitter.trapBubbledEvent(
271 EventConstants.topLevelTypes.topLoad,
@@ -465,6 +466,7 @@ ReactDOMComponent.Mixin = {
466
467 switch (this._tag) {
468 case 'iframe':
469 + case 'object':
470 case 'img':
471 case 'form':
472 case 'video':
@@ -1022,6 +1024,7 @@ ReactDOMComponent.Mixin = {
1024 unmountComponent: function() {
1025 switch (this._tag) {
1026 case 'iframe':
1027 + case 'object':
1028 case 'img':
1029 case 'form':
1030 case 'video':