mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 10:48:38 -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);
|
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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue