jenkins-bot has submitted this change and it was merged.

Change subject: Remove comment saying code should add RL dependencies directly
......................................................................


Remove comment saying code should add RL dependencies directly

This does not reflect actual ResourceLoader best practices.

Bug: 51853
Change-Id: I62e875c472ecc54b310ce5ed14fdcabda02e19e5
---
M includes/resourceloader/ResourceLoaderModule.php
1 file changed, 1 insertion(+), 6 deletions(-)

Approvals:
  Krinkle: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/resourceloader/ResourceLoaderModule.php 
b/includes/resourceloader/ResourceLoaderModule.php
index f6a7114..9847ac0 100644
--- a/includes/resourceloader/ResourceLoaderModule.php
+++ b/includes/resourceloader/ResourceLoaderModule.php
@@ -274,12 +274,7 @@
         * Get a list of modules this module depends on.
         *
         * Dependency information is taken into account when loading a module
-        * on the client side. When adding a module on the server side,
-        * dependency information is NOT taken into account and YOU are
-        * responsible for adding dependent modules as well. If you don't do
-        * this, the client side loader will send a second request back to the
-        * server to fetch the missing modules, which kind of defeats the
-        * purpose of the resource loader.
+        * on the client side.
         *
         * To add dependencies dynamically on the client side, use a custom
         * loader script, see getLoaderScript()

-- 
To view, visit https://gerrit.wikimedia.org/r/80408
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I62e875c472ecc54b310ce5ed14fdcabda02e19e5
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to