Merge "link.prepend is not a function in older browsers"
This commit is contained in:
commit
74bdd375bb
|
@ -102,7 +102,8 @@ function addPortletLinkHandler( item, data ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( link && iconElement ) {
|
// Check link.prepend exists for older browser since this is ES5 code
|
||||||
|
if ( link && iconElement && link.prepend ) {
|
||||||
link.prepend( iconElement );
|
link.prepend( iconElement );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue