Skip to content

Commit

Permalink
Merge pull request #5781 from ara4n/master
Browse files Browse the repository at this point in the history
support onLoad synthetic event attribute on 'object' tags
  • Loading branch information
zpao committed Mar 7, 2016
2 parents 2b0f730 + 7f322b5 commit f3738d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderers/dom/shared/ReactDOMComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ function trapBubbledEventsLocal() {

switch (inst._tag) {
case 'iframe':
case 'object':
inst._wrapperState.listeners = [
ReactBrowserEventEmitter.trapBubbledEvent(
EventConstants.topLevelTypes.topLoad,
Expand Down Expand Up @@ -463,6 +464,7 @@ ReactDOMComponent.Mixin = {

switch (this._tag) {
case 'iframe':
case 'object':
case 'img':
case 'form':
case 'video':
Expand Down Expand Up @@ -1018,6 +1020,7 @@ ReactDOMComponent.Mixin = {
unmountComponent: function(safely) {
switch (this._tag) {
case 'iframe':
case 'object':
case 'img':
case 'form':
case 'video':
Expand Down

0 comments on commit f3738d2

Please sign in to comment.