diff --git a/examples/Paperjs.org/Qbertify.html b/examples/Paperjs.org/Qbertify.html index 5b36d5c8..4ebce00c 100644 --- a/examples/Paperjs.org/Qbertify.html +++ b/examples/Paperjs.org/Qbertify.html @@ -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); diff --git a/examples/Paperjs.org/SpiralRaster.html b/examples/Paperjs.org/SpiralRaster.html index 4f4aacef..dd02f4a4 100644 --- a/examples/Paperjs.org/SpiralRaster.html +++ b/examples/Paperjs.org/SpiralRaster.html @@ -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);