#21

New

create a purge-like metod to DOMManager.

Reported by volkan ozcelik on sardalya - sarmal dynamic framework · 25/04/2006 13:15:57

Assigned to:
Nobody
Priority:
Normal
Status:
New
Category:
None
Version:
None

function purge(d) {
var a = d.attributes, i, l, n;
if (a) {
l = a.length;
for (i = 0; i < l; i += 1) {
n = a[i].name;
if (typeof d[n] === ‘function’) {
d[n] = null;
}
}
}
a = d.childNodes;
if (a) {
l = a.length;
for (i = 0; i < l; i += 1) {
purge(d.childNodes[i]);
}
}
}

Attachments

No attachment has been uploaded, yet.


Loading comments...