User talk:Gerbrant/alternativeOnloadHook.js
Appearance
- Gerbrant.alternativeOnloadHook
- Alternative onload hook to fix a problem with Lupin's popups, Lupin.popups, or Lupin.popupsdev (development version).
Exports
[edit]- standard
- The standard addOnloadHook function, like it is included in
wikibits.js
. - alternative
- The alternative version. This is the one in use after includion of the module.
Legacy JavaScript
[edit]Hello! This script has been detected as using deprecated parameters that need to be replaced with the updated version. Examples include addOnloadHook( ... )
needs to be replaced with $( ... )
or $( function() { ... } )
(depending on use); all wgGlobalVariables need to be properly gotten with mw.config.get( 'wgGlobalVariable' )
; and addPortletLink
needs to be called with mw.util.addPortletLink
. Please see MW:ResourceLoader/Legacy JavaScript for details. Thank you. — {{U|Technical 13}} (e • t • c)
21:24, 19 January 2015 (UTC)