Last modified: 2014-07-11 21:57:56 UTC
A tracking bug for bugs caught by mw.loader.inspect(). Related: <http://lists.wikimedia.org/pipermail/wikitech-l/2013-October/072378.html>.
(In reply to MZMcBride from comment #0) > A tracking bug for bugs caught by mw.loader.inspect(). Related: > <http://lists.wikimedia.org/pipermail/wikitech-l/2013-October/072378.html>. Feature is still undocumented: https://www.mediawiki.org/w/index.php?title=Special:Search&search=%22mw.loader.inspect%28%29%3B%22&fulltext=Ricerca&profile=all Lately I only get "undefined", am I doing something wrong?
(In reply to Nemo from comment #1) > Feature is still undocumented: > https://www.mediawiki.org/w/index.php?title=Special:Search&search=%22mw. > loader.inspect%28%29%3B%22&fulltext=Ricerca&profile=all > Lately I only get "undefined", am I doing something wrong? Copying Ori.
(In reply to Nemo from comment #1) > (In reply to MZMcBride from comment #0) > > A tracking bug for bugs caught by mw.loader.inspect(). Related: > > <http://lists.wikimedia.org/pipermail/wikitech-l/2013-October/072378.html>. > > Feature is still undocumented: > https://www.mediawiki.org/w/index.php?title=Special:Search&search=%22mw. > loader.inspect%28%29%3B%22&fulltext=Ricerca&profile=all > Lately I only get "undefined", am I doing something wrong? mw.loader.inspect() is a function that prints to the console but doesn't return a value, so it evaluates to undefined. It's no different than console.log() in that way. I'm not sure why you're not getting the rest of the output, though. It works fine for me (just tested on Chrome 37, Firefox 32, Safari 7 on OS X). As for documentation, help? :)
Weird, I can't get it to work on Firefox 29.0.1 with or with extensions, logged in or not: I only get "ReferenceError: mw is not defined" as output. But I tweaked some settings and it now works on Chromium, so it's not that important. I'll add some docs when I figure it out a bit more.