https://bugzilla.wikimedia.org/show_bug.cgi?id=38782
--- Comment #1 from Krinkle <[email protected]> 2012-07-31 05:52:34 UTC --- Modules are always registered, whether they are going to be loaded or not. The reason is because it is not known in advance what will and will not be loaded. e.g. an inline "mw.loader.load()" should always work. So "if exist" is not possible. Alternatively "if loaded" could be an option (e.g. mw.loader.callWhenLoaded( ['mediawiki.action.edit'], fn );, which will call the function when that module is loaded, but it would not initiate a load request. Though it could be useful, I'd argue the only use case it serves are work-arounds that can and should be solved other wise. If there are non-hacky use cases for it, I'd be happy to consider it though. In the case of the edit toolbar the proper solution imho is to use a hook. -- 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
