$.parseJSON gets deprecated in jQuery 3.0:
https://jquery.com/upgrade-guide/3.0/#deprecated-jquery-parsejson
Change-Id: I5d28e2cadd4bf598908943176a757b7c5386d27c
$result.empty();
if ( /^text\/mediawiki-api-prettyprint-wrapped(?:;|$)/.test( ct ) ) {
$result.empty();
if ( /^text\/mediawiki-api-prettyprint-wrapped(?:;|$)/.test( ct ) ) {
- data = $.parseJSON( data );
+ data = JSON.parse( data );
if ( data.modules.length ) {
mw.loader.load( data.modules );
}
if ( data.modules.length ) {
mw.loader.load( data.modules );
}