« MediaWiki:Gadget-inline-js-loader.js » : différence entre les versions

De Wikimedica
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
console.log("Loaded inline-js-loader");
console.log("Loaded inline-js-loader");


for(let n in inlineJS) // Each function to be executed is added to the inlineJS object.
for(var n in inlineJS) // Each function to be executed is added to the inlineJS object.
{
{
f = inlineJS[n];
f = inlineJS[n];
if(typeof f === 'function' ) { f(); }
if(typeof f === 'function' ) { f(); }
}
}

Version du 31 mars 2020 à 16:37

console.log("Loaded inline-js-loader");

for(var n in inlineJS) // Each function to be executed is added to the inlineJS object.
{
	f = inlineJS[n];
	if(typeof f === 'function' ) { f(); }
}