Use native ES5 Array prototype methods instead of jQuery
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.inspect.js
index 006ca1f..f91ffbb 100644 (file)
@@ -55,7 +55,7 @@
                                }
                                graph[ moduleName ].requires = dependencies;
 
-                               $.each( dependencies, function ( depIndex, depName ) {
+                               dependencies.forEach( function ( depName ) {
                                        if ( !hasOwn.call( graph, depName ) ) {
                                                graph[ depName ] = { requiredBy: [] };
                                        }