mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts/page-issues/page/PageIssueLink.js
Fomafix bc81b04ecd Remove redundant closure for all modules with packageFiles
Modules loaded with packageFiles are always executed in module scope
(with a closure), even in debug mode.

The behaviour of non-packageFiles debug mode is the only reason files
have closures.

https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Closure

Change-Id: I14ac680eb67d892618bbc13be9298ec9b8e0e2e9
2024-11-07 08:39:58 -08:00

14 lines
323 B
JavaScript

/**
* Create a link element that opens the issues overlay.
*
* @internal
* @ignore
* @param {string} labelText The text value of the element
* @return {jQuery}
*/
function newPageIssueLink( labelText ) {
return $( '<a>' ).addClass( 'cleanup mw-mf-cleanup' ).text( labelText );
}
module.exports = newPageIssueLink;