Skip to content

Commit

Permalink
Update to define() to match Async Module API.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrburke committed Oct 15, 2010
1 parent d3dd0d5 commit 9223483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.js
Expand Up @@ -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
Expand Down

0 comments on commit 9223483

Please sign in to comment.