Setting the jsonp option to false now inhibits any url manipulation regarding the...
[jquery.git] / src / data.js
index 549e73e..4d1d1bd 100644 (file)
@@ -10,7 +10,8 @@ jQuery.extend({
        uuid: 0,
 
        // Unique for each copy of jQuery on the page
-       expando: "jQuery" + jQuery.now(),
+       // Non-digits removed to match rinlinejQuery
+       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
 
        // The following elements throw uncatchable exceptions if you
        // attempt to add expando properties to them.
@@ -22,7 +23,7 @@ jQuery.extend({
        },
 
        hasData: function( elem ) {
-               if (elem.nodeType) {
+               if ( elem.nodeType ) {
                        elem = jQuery.cache[ elem[jQuery.expando] ];
                }