ResourceLoader/JavaScript Deprecations

From MediaWiki.org
< ResourceLoader(Redirected from RL/JD)
Jump to: navigation, search
shortcut RL/JD

Contents

This page documents deprecated identifiers that will be removed from mediawiki eventually (see bug 33836) and there replacements as can be found in the "Replaced by" columns below. All replacements and some new modules are available as-is since 1.17. Please use the modern replacements for new code and rewrite old code immediately. If you encounter no replacement and believe there should be one, please Let us know!

Please note the current implementation in Git may differ from the latest stable release and what might eventually be included with mediawiki. Any code relying on details obtained from Git may break.

Toggle grep script

There is a plain text list available of all identifiers with indicated replacements on this page that is suitable for automated searching of source code using Unix style commands such as:

grep -f deprecated.ids *.js

where deprecated.ids is a text file created from the list page. Make sure to not have a blank line at the end of the file. Note that due to some variables potentially being part of another (non-deprecated or custom) method, using 'grep' is not recommended for automated reviews (for example addPortletLink and mw.util.addPortletLink, and 'ta' and 'var = takeMyCustomVariable').

[edit] ajax.js

[edit] ajaxwatch.js

[edit] block.js

[edit] changepassword.js

Identifier Type Replaced by
onNameChange function None/Removed
onNameChangeHook function

[edit] edit.js

The toolbar interfaces will likely migrate into an extension. The default bundle would include the Extension:WikiEditor, which already has an advanced API that replaces all of this.

[edit] enhancedchanges.js

Identifier Type Replaced by
toggleVisibility function None/Removed

[edit] history.js

[edit] htmlform.js

Identifier Type Replaced by
htmlforms object None/Removed

[edit] IEFixes.js

Identifier Type Replaced by
doneIETransform object None of these should ever be used by anyone. :)
doneIEAlphaFix object
expandedURLs object
hookit function
fixalpha function
relativeforfloats function
setrelative function
onbeforeprint function
onafterprint function

[edit] metadata.js

Identifier Type Replaced by
attachMetadataToggle function No public functions

[edit] mwsuggest.js

[edit] prefs.js

[edit] preview.js

Identifier Type Replaced by
doLivePreview function

[edit] protect.js

Identifier Type Replaced by
ProtectionForm object

[edit] rightclickedit.js

[edit] search.js

[edit] upload.js

Identifier Type Replaced by
wgUploadWarningObj object
wgUploadLicenseObj object
licenseSelectorCheck function
wgUploadSetup function
toggleUploadInputs function
fillDestFilename function
toggleFilenameFiller function

[edit] wikibits.js

ResourceLoader
Documentation Migration guide (users) · Migration guide (developers) · Developing with ResourceLoader · Default modules · Vocabulary
Project information Status updates · Version 1 Design Specification (tasks) · Version 2 Design Specification (tasks) · Requirements
Other JavaScript Deprecations
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox