mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Support onLoad event on link element (#6815)
(cherry picked from commit fd589fc8dd)
This commit is contained in:
committed by
Paul O’Shannessy
parent
23d3e70b4e
commit
c060f4ac3d
@@ -514,12 +514,13 @@ ReactDOMComponent.Mixin = {
|
||||
var props = this._currentElement.props;
|
||||
|
||||
switch (this._tag) {
|
||||
case 'iframe':
|
||||
case 'object':
|
||||
case 'img':
|
||||
case 'form':
|
||||
case 'video':
|
||||
case 'audio':
|
||||
case 'form':
|
||||
case 'iframe':
|
||||
case 'img':
|
||||
case 'link':
|
||||
case 'object':
|
||||
case 'video':
|
||||
this._wrapperState = {
|
||||
listeners: null,
|
||||
};
|
||||
@@ -1084,12 +1085,13 @@ ReactDOMComponent.Mixin = {
|
||||
*/
|
||||
unmountComponent: function(safely) {
|
||||
switch (this._tag) {
|
||||
case 'iframe':
|
||||
case 'object':
|
||||
case 'img':
|
||||
case 'form':
|
||||
case 'video':
|
||||
case 'audio':
|
||||
case 'form':
|
||||
case 'iframe':
|
||||
case 'img':
|
||||
case 'link':
|
||||
case 'object':
|
||||
case 'video':
|
||||
var listeners = this._wrapperState.listeners;
|
||||
if (listeners) {
|
||||
for (var i = 0; i < listeners.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user