Commit 9029dc02 authored by Colin Snover's avatar Colin Snover

Update CommonJS module registration to check to see if define is a function...

Update CommonJS module registration to check to see if define is a function instead of just not undefined.
parent dfa57073
...@@ -887,7 +887,7 @@ function doScrollCheck() { ...@@ -887,7 +887,7 @@ function doScrollCheck() {
} }
// Expose jQuery as an Asynchronous Module // Expose jQuery as an Asynchronous Module
if ( typeof define !== "undefined" ) { if ( typeof define === "function" ) {
define( "jquery", [], function () { return jQuery; } ); define( "jquery", [], function () { return jQuery; } );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment