https://bugzilla.wikimedia.org/show_bug.cgi?id=33836
--- Comment #9 from Krinkle <[email protected]> 2012-05-11 17:28:55 UTC --- (In reply to comment #5) > Even when $wgIncludeLegacyJavaScript is set to false by default, wikibits.js > will be loaded in a standard installation: $wgUseAjax is true by default, this > loads the legacy ajax.js (though at least the ajax features in core don't need > it anymore), which has wikibits.js as dependency. Yes, but one must never depend on another module's dependency. wgIncludeLegacyJavaScript is intended for scripts that are not resource loader modules (yet) so that those (usually older) scripts may assume presence of wikibits methods. If wgIncludeLegacyJavaScript is false, eventhough it may end up being loaded, you can't know for sure if it will be loaded when you need it. For example, if wgIncludeLegacyJavaScript is false, and your module loads before ajax.js then you won't have wikibits. (unless you add mediawiki.legacy.wikibits to your module dependencies, see comment 3) -- 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 [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
