code: function(d) {
          var a = d.attributes, i;
          if (a) {
            for (i = 0; i < a.length; i += 1) {
              if (typeof d[a[i].name] === 'function') d[a[i].name] = null;
            }
          }
          a = d.childNodes;
          if (a) {
            for (i = 0; i < a.length; i += 1) purge(d.childNodes[i]);
          }
        }
docs: **Douglas Crockford's IE6 memory leak fix** <http://javascript.crockford.com/memory/leak.html> This is used to release the memory leak created by the circular references created when fixing `this` scoping for IE. It is called on page unload.