X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fjquery.json-deprecate.js;h=f38decd9a0b27a6c78d0a47f8dca170d88fbe2b1;hb=1137960eea700dc4998084d3c99e87150bad6525;hp=485d9c0bb23c9b24e0040633e88099bd9d960ff5;hpb=5f5d4e1c0639c9ca0727c7d0805a2fe80974744d;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/jquery.json-deprecate.js b/resources/src/jquery.json-deprecate.js index 485d9c0bb2..f38decd9a0 100644 --- a/resources/src/jquery.json-deprecate.js +++ b/resources/src/jquery.json-deprecate.js @@ -1,6 +1,8 @@ ( function ( mw, $ ) { + // @deprecated since 1.24. The 'jquery.json' module will be removed in MW 1.25. Use the 'json' module. + mw.log.deprecate( $, 'toJSON', $.toJSON, 'Use JSON.stringify instead (module "json" for polyfill).' ); mw.log.deprecate( $, 'evalJSON', $.evalJSON, 'Use JSON.parse instead (module "json" for polyfill).' ); mw.log.deprecate( $, 'secureEvalJSON', $.secureEvalJSON, 'Use JSON.parse instead (module "json" for polyfill).' ); - mw.log.deprecate( $, 'quoteString', $.quoteString, 'Use JSON.parse instead (module "json" for polyfill).' ); + mw.log.deprecate( $, 'quoteString', $.quoteString, 'Use JSON.stringify instead (module "json" for polyfill).' ); }( mediaWiki, jQuery ) );