Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update to define() to match Async Module API.

  • Loading branch information...
commit 9223483c6631c046e09e31a754660c23e9479e01 1 parent d3dd0d5
James Burke authored October 15, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  src/core.js
4  src/core.js
@@ -879,8 +879,8 @@ function doScrollCheck() {
879 879
 }
880 880
 
881 881
 // 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; } );
884 884
 }
885 885
 
886 886
 // Expose jQuery to the global object

0 notes on commit 9223483

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