https://bugzilla.wikimedia.org/show_bug.cgi?id=34485
Web browser: Opera Bug #: 34485 Summary: modules loaded with using() fail in debug mode Product: MediaWiki Version: 1.19 Platform: All URL: http://de.wikipedia.beta.wmflabs.org OS/Version: All Status: NEW Severity: major Priority: Unprioritized Component: Resource Loader AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: a.d.be...@web.de CC: krinklem...@gmail.com, roan.katt...@gmail.com, tpars...@wikimedia.org Classification: Unclassified Mobile Platform: --- I just wanted to test MediaWiki:Group-sysop.js at beta.wmflabs.org. At first it didn't seem to work so I switched to &debug=true mode to be able to set linewise breakpoints etc. Surprise, surprise: It didn't work in debug mode, even if the code was correct. It took some time until I figured out what the problem was: The callback function of mw.loader.using() was called when the script arrived. But in debug mode it's only a script that implements modules by pointing to their indivial URLs, to load the modules separately. Even though the functionality (jQuery.byteLimit in my case) was not available yet, it got used - and hence my script broke. Without debug mode it works :-( -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l