From 5006a0557f80e68b47f2a058b896b23f8c695368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 8 Oct 2014 18:27:48 +0200 Subject: [PATCH] Remove calls to DomEvent as that's not exposed any longer. --- examples/Paperjs.org/Qbertify.html | 8 +++----- examples/Paperjs.org/SpiralRaster.html | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) 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);