mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Remove calls to DomEvent as that's not exposed any longer.
This commit is contained in:
parent
0d360a6c0c
commit
5006a0557f
2 changed files with 6 additions and 10 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue