X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Flib%2Fjquery%2Fjquery.migrate.js;h=992a734b29371f44a94bf9e444c9f180532522f4;hb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695;hp=c9b37ca77915ecd920528195617423f382bebce4;hpb=2e2ac756e72243721a8e3d7be3a612d1265431bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/lib/jquery/jquery.migrate.js b/resources/lib/jquery/jquery.migrate.js index c9b37ca779..992a734b29 100644 --- a/resources/lib/jquery/jquery.migrate.js +++ b/resources/lib/jquery/jquery.migrate.js @@ -3,10 +3,9 @@ * Copyright jQuery Foundation and other contributors * * Patched for MediaWiki: - * - Preserve handler of uncaught exceptions in promise chains - * https://gerrit.wikimedia.org/r/#/c/360999/ - * https://github.com/jquery/jquery-migrate/pull/262 * - Add mw.track instrumentation for statistics. + * - Disable jQuery.migrateTrace by default. They are slow and + * redundant given console.warn() already provides a trace. */ ;( function( factory ) { if ( typeof define === "function" && define.amd ) { @@ -64,7 +63,8 @@ jQuery.migrateWarnings = []; // Set to false to disable traces that appear with warnings if ( jQuery.migrateTrace === undefined ) { - jQuery.migrateTrace = true; + // PATCH: Disable extra console.trace() call --Krinkle + jQuery.migrateTrace = false; } // Forget any warnings we've already given; public