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); reader.readAsDataURL(file);
} }
DomEvent.add(document, { document.addEventListener('drop', onDocumentDrop, false);
drop: onDocumentDrop, document.addEventListener('dragover', onDocumentDrag, false);
dragover: onDocumentDrag, document.addEventListener('dragleave', onDocumentDrag, false);
dragleave: onDocumentDrag
});
</script> </script>
</head> </head>
<body> <body>

View file

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