https://bugzilla.wikimedia.org/show_bug.cgi?id=28995
Web browser: ---
Bug #: 28995
Summary: public interface for getting state of a module
Product: MediaWiki
Version: 1.17
Platform: All
OS/Version: All
Status: NEW
Keywords: patch
Severity: enhancement
Priority: Unprioritized
Component: Resource Loader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 8538
--> https://bugzilla.wikimedia.org/attachment.cgi?id=8538
proposed patch
Sometimes userscripts need to know about the registrated modules, mostly about
their state. A further enhancement could be something like
mw.loader.getModules = function() {
return Object.keys(registry);
}
but I don't think is really needed.
My patch also resolves inconsistencies in the naming conventions of getters and
setters; I think there should be a clear difference.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l