Skip to content
Browse files

Update to define() to match Async Module API.

  • Loading branch information...
1 parent d3dd0d5 commit 9223483c6631c046e09e31a754660c23e9479e01 @jrburke committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core.js
View
4 src/core.js
@@ -879,8 +879,8 @@ function doScrollCheck() {
}
// Expose jQuery as a CommonJS Asynchronous Module
-if ( typeof require !== "undefined" && require.def ) {
- require.def( [], function () { return jQuery; } );
+if ( typeof define !== "undefined" ) {
+ define( [], function () { return jQuery; } );
}
// Expose jQuery to the global object

0 comments on commit 9223483

Please sign in to comment.
Something went wrong with that request. Please try again.