mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-27 17:10:19 +00:00
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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue