Hi

I am using jQuery data store and wished to make deep copy of elements, including all the data stored with jQuery.

So I'm using the allData plugin provided here : http://stackoverflow.com/questions/999535/how-to-get-from-an-element-all-the-data-set-using-the-data-method

also I made a quick'n dirty setData plugin :

jQuery.fn.setData = function(allData) {
   return $(this).each(function(){
               $.each(allData, function(k, v){
                   $(this).data(k, v);
               });
}); };

After several manipulations, I get "ghost" data mixing up with the data it did set : It is key / values looking like : jQuery1245205292826 / 1552

I am trying to figure out what is happening exactly, and when this ghost data is being added, but firebug is quite unstable on this and I cant trust its results.

Any help / hint appreciated !


Reply via email to