HomePhabricator

[ResourceLoader2] Create getModuleNames() function

Description

[ResourceLoader2] Create getModuleNames() function

  • Returns all keys from the (private) registry object as an array
  • Needed for ResourceLoader 2 in order to do autosuggestions for dependancies and cheap non-http-request lookups to avoid duplicate keys when creating new modules/gadgets.

(bug 30160 ) Add public method to mw.loader to get module names from registry

Details

Committed
KrinkleAug 1 2011, 9:01 PM
Parents
rSVN93652: 2.0.30 -> 2.1.1
Branches
Unknown
Tags
Unknown
ChangeId
None