[jQuery] jQuery.data() identifier not working
Hi,
Does anyone knows why this:
var id = elem[ expando ];
// Compute a unique ID for the element
if ( !id ) {
id = elem[expando] = ++uuid;
}
Could be being broken? I mean, on a test page I made the elem[expando]
property is not being "saved".
I'll explain, the first time I do jQuery.data(element) I get a number
lets say: 10.
Then if I do again the same (with the exactly same element) I get: 14.
I'm using this to identify elements so its not working as expected,
anyone have theories about this?