Remove calls to DomEvent as that's not exposed any longer.

This commit is contained in:
Jürg Lehni 2014-10-08 18:27:48 +02:00
parent 0d360a6c0c
commit 5006a0557f
2 changed files with 6 additions and 10 deletions

View file

@ -130,11 +130,9 @@
reader.readAsDataURL(file);
}
DomEvent.add(document, {
drop: onDocumentDrop,
dragover: onDocumentDrag,
dragleave: onDocumentDrag
});
document.addEventListener('drop', onDocumentDrop, false);
document.addEventListener('dragover', onDocumentDrag, false);
document.addEventListener('dragleave', onDocumentDrag, false);
</script>
</head>
<body>

View file

@ -105,11 +105,9 @@
reader.readAsDataURL(file);
}
DomEvent.add(document, {
drop: onDocumentDrop,
dragover: onDocumentDrag,
dragleave: onDocumentDrag
});
document.addEventListener('drop', onDocumentDrop, false);
document.addEventListener('dragover', onDocumentDrag, false);
document.addEventListener('dragleave', onDocumentDrag, false);
</script>
</head>
<body>