Skip to content

Commit ce3d1ab

Browse files
Fix bug with purgeElement in dom.js.
1 parent 0d23b66 commit ce3d1ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/prototype/dom/dom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@
11661166
var uid = getUniqueElementID(element);
11671167
if (uid) {
11681168
Element.stopObserving(element);
1169-
if (HAS_UNIQUE_ID_PROPERTY)
1169+
if (!HAS_UNIQUE_ID_PROPERTY)
11701170
element._prototypeUID = UNDEFINED;
11711171
delete Element.Storage[uid];
11721172
}
@@ -1188,7 +1188,7 @@
11881188
}
11891189
}
11901190

1191-
if (!window.addEventListener && window.attachEvent) {
1191+
if (HAS_UNIQUE_ID_PROPERTY) {
11921192
purgeCollection = purgeCollection_IE;
11931193
}
11941194

0 commit comments

Comments
 (0)