X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fdata.js;h=4d1d1bd55615ba2944c9cfa9b44dbdd93c307f2d;hb=c43b078c6911027fd4124d542446ad0098662f6a;hp=549e73ed4e074dfea6b0963918901d6bd5421f07;hpb=e199ead4cba3687beca2444eea4bb8abc20f55b6;p=jquery.git diff --git a/src/data.js b/src/data.js index 549e73e..4d1d1bd 100644 --- a/src/data.js +++ b/src/data.js @@ -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] ]; }