Update CommonJS module registration to check to see if define is a function instead...
[jquery.git] / src / core.js
index 008a88c..4da1212 100644 (file)
@@ -532,12 +532,6 @@ jQuery.extend({
        },
 
        isEmptyObject: function( obj ) {
-
-    // Fixes #7413 Check to see if obj passes isPlainObject
-    if ( !jQuery.isPlainObject( obj ) ) {
-      return false;
-    }
-       
                for ( var name in obj ) {
                        return false;
                }
@@ -892,6 +886,11 @@ function doScrollCheck() {
        jQuery.ready();
 }
 
+// Expose jQuery as an Asynchronous Module
+if ( typeof define === "function" ) {
+       define( "jquery", [], function () { return jQuery; } );
+}
+
 // Expose jQuery to the global object
 return (window.jQuery = window.$ = jQuery);