vendor/DocumentUp/documentup.js
function () {
        var i, entries = registry.entries()
        for (i in entries) {
          if (entries[i].type && entries[i].type !== 'unload')
            remove(entries[i].element, entries[i].type)
        }
        win[detachEvent]('onunload', cleanup)
        win.CollectGarbage && win.CollectGarbage()
      }
function () {
        var i, entries = registry.entries()
        for (i in entries) {
          if (entries[i].type && entries[i].type !== 'unload')
            remove(entries[i].element, entries[i].type)
        }
        win[detachEvent]('onunload', cleanup)
        win.CollectGarbage && win.CollectGarbage()
      }
function ( ) { var i , entries = registry . entries ( ) for ( i in entries ) { if ( entries [ i ] . type && entries [ i ] . type !== 'unload' ) remove ( entries [ i ] . element , entries [ i ] . type ) } win [ detachEvent ] ( 'onunload' , cleanup ) win . CollectGarbage && win . CollectGarbage ( ) }
for IE, clean up on unload to avoid leaks
for IE clean up on unload to avoid leaks