[jQuery] jQuery.data() identifier not working
Hi, I've found a VERY strange behavior while developing a little code.
I'm trying to identify some elements with the jQuery.data(element)
function, this returns a "unique" id for each element (AFAIK).
But the strange this is this little code of jQuery:
var id = elem[ expando ];
// Compute a unique ID for the element
if ( !id ) {
id = elem[expando] = ++uuid;
}
this is part of the data function (~line