<!DOCTYPE html>
<title>drag &amp; drop - cross-document variable retention within event handlers</title>
<style>
  body > div {
    height: 200px;
    width: 200px;
    background-color: orange;
  }
</style>

<script>
var evs = {};
window.onload = function() {
  var orange = document.getElementsByTagName('div')[0];
  orange.ondragstart = function(e) {
    e.dataTransfer.effectAllowed = 'copy';
    e.dataTransfer.setData('text', 'dummy text');
    evs[e.type] = {};
    evs[e.type].dataTransfer = e.dataTransf