https://bugzilla.wikimedia.org/show_bug.cgi?id=44299
--- Comment #18 from [email protected] --- Oh, array filter unsupported in IE versions prior to 9, https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/filter There are lots of ways to do it. The following should produce an empty string, otherwise it produces a string identifying problematic modules and their state. var modules = mw.loader.getModuleNames(), len = modules.length, name, state, bad = [], err = ''; for (var i = 0; i < len; i++) { state = mw.loader.getState( modules[i] ); if ( state !== 'ready' && state !== 'registered' ) { bad.push ( modules[i] + ' state is ' + state ); } } if ( bad.length ) { err = "troubled modules: " + bad.join( '; ') + '.'; } err; // Something like assertEmptyString( err ); -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
