Adding a bit more documentation to mw.loader.using
authorkaldari <rkaldari@wikimedia.org>
Fri, 11 Jul 2014 20:02:15 +0000 (13:02 -0700)
committerkaldari <rkaldari@wikimedia.org>
Fri, 11 Jul 2014 20:02:53 +0000 (13:02 -0700)
Change-Id: I3c9a838f5b110de898d532331e387b17901ccdea

resources/src/mediawiki/mediawiki.js

index 12888bd..4d1d563 100644 (file)
                                /**
                                 * Execute a function as soon as one or more required modules are ready.
                                 *
+                                * If the required modules are already loaded, the function will be
+                                * executed immediately and the modules will not be reloaded.
+                                *
                                 * Example of inline dependency on OOjs:
                                 *
                                 *     mw.loader.using( 'oojs', function () {