jquery-migrate
Version:
Migrate older jQuery code to jQuery 3.0+
32 lines (25 loc) • 690 B
JavaScript
/*!
* jQuery Migrate - v@VERSION - @DATE
* Copyright OpenJS Foundation and other contributors
*/
( function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery" ], function( jQuery ) {
return factory( jQuery, window );
} );
} else if ( typeof module === "object" && module.exports ) {
// Node/CommonJS
// eslint-disable-next-line no-undef
module.exports = factory( require( "jquery" ), window );
} else {
// Browser globals
factory( jQuery, window );
}
} )( function( jQuery, window ) {
;
// @CODE
// build.js inserts compiled jQuery here
return jQuery;
} );