Skip to content

Commit 9223483

Browse files
committed
Update to define() to match Async Module API.
1 parent d3dd0d5 commit 9223483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ function doScrollCheck() {
879879
}
880880

881881
// Expose jQuery as a CommonJS Asynchronous Module
882-
if ( typeof require !== "undefined" && require.def ) {
883-
require.def( [], function () { return jQuery; } );
882+
if ( typeof define !== "undefined" ) {
883+
define( [], function () { return jQuery; } );
884884
}
885885

886886
// Expose jQuery to the global object

0 commit comments

Comments
 (0)