This project is archived and is in readonly mode.

#1081 ✓resolved
ikti

No uid on IE in Element internal clean method

Reported by ikti | November 10th, 2010 @ 03:11 PM | in 1.3.1 (closed)

Code in repository:

var clean = function(item){      


if (item.removeEvents) item.removeEvents();
if (item.clearAttributes) item.clearAttributes();
var uid = item.uid;
if (uid != null){
    delete collected[uid];
    delete storage[uid];
}
return item;



};

item.uid is read into local variable after item.clearAttributes() but on IE clearAttributes clears item.uid

Working code:

var clean = function(item){

if (item.removeEvents) item.removeEvents();
var uid = item.uid;
if (item.clearAttributes) item.clearAttributes();
if (uid != null){
    delete collected[uid];
    delete storage[uid];
}
return item;



};

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Referenced by

Pages