MediaWiki:Gadget-rsw-util.js: Difference between revisions

no edit summary
(Created page with "(function ($, mw, rs) { 'use strict'; function createOOUIWindowManager() { if (window.OOUIWindowManager == undefined) { window.OOUIWindowManager = new OO.ui.WindowManager(); $( 'body' ).append( window.OOUIWindowManager.$element ); } return window.OOUIWindowManager; } /** * Reusable functions * * These are available under the `rswiki` global variable. * @example `rswiki.addCommas` * The alias `rs` is also avai...")
 
No edit summary
Tag: Reverted
Line 18:
* The alias `rs` is also available in place of `rswiki`.
*/
var mw.util = {
/**
* Formats a number string with commas.
Line 368:
 
function init() {
$.extend(rs, mw.util, {});
// add rs as a global alias
window.rs = rs;