aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.base
diff options
context:
space:
mode:
authorTimo Tijhof <krinkle@fastmail.com>2022-08-31 18:33:26 +0200
committerTimo Tijhof <krinkle@fastmail.com>2022-09-01 02:28:37 +0200
commit9d6978b55283038b7aadc725d9023754dfd0b853 (patch)
treee0d7cf8175b2ff6a1adc757e75672978ded8bd1d /resources/src/mediawiki.base
parentc29ac9023f434c982d280cd5a20ebea3bc185073 (diff)
downloadmediawikicore-9d6978b55283038b7aadc725d9023754dfd0b853.tar.gz
mediawikicore-9d6978b55283038b7aadc725d9023754dfd0b853.zip
ResourceLoader: Remove deprecated global 'loadedScripts' property
This introduced in MediaWiki 1.12.2 as part of importScriptURI, but never documented as public API. It was soft-deprecated in 1.17 (2011) and hard-deprecated in MW 1.25 (2015). According to Global Search, there were 21 mentions of a identifier with this name. [1] Most are false positives (e.g. standalone code that has another property by that name, or mentioned in comments or regexes only). There were a handful of hacks that try to undo the tracking so that the same URL can be loaded a second time. I've converted those to use mw.loader.load() instead. There are no live references left anywhere on WMF wikis. [1] https://global-search.toolforge.org/?namespaces=2%2C4%2C8&q=loadedScripts&title=%28Gadgets-definition%7C.%2A%5C.%28js%7Ccss%7Cjson%29%29&purge=1 Change-Id: Ia0356f6d904c0de47843c719ed8c1a15d1c35a00
Diffstat (limited to 'resources/src/mediawiki.base')
-rw-r--r--resources/src/mediawiki.base/mediawiki.base.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/resources/src/mediawiki.base/mediawiki.base.js b/resources/src/mediawiki.base/mediawiki.base.js
index d10a2203925f..3ba9576fc4d9 100644
--- a/resources/src/mediawiki.base/mediawiki.base.js
+++ b/resources/src/mediawiki.base/mediawiki.base.js
@@ -691,8 +691,6 @@ window.importStylesheet = function ( title ) {
);
};
-mw.log.deprecate( window, 'loadedScripts', loadedScripts, 'Use mw.loader instead.' );
-
/**
* @since 1.12.2
* @deprecated since 1.17 Use mw.loader instead. Warnings added in 1.25.