From 4acfbff2862af9100addbb479f011704f069ed86 Mon Sep 17 00:00:00 2001 From: Edvinas Date: Fri, 9 Sep 2016 23:15:58 +0300 Subject: [PATCH] Update cropit.js Bugfix with jQuery 3 > error "Cannot read property 'push' of undefined weird error" --- src/cropit.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cropit.js b/src/cropit.js index a58a9ae..8e3e3f5 100644 --- a/src/cropit.js +++ b/src/cropit.js @@ -99,6 +99,8 @@ class Cropit { this.zoomer = new Zoomer(); if (this.options.allowDragNDrop) { + if(typeof _jquery2['default'].event.props == 'undefined') + _jquery2['default'].event.props = new Array(); $.event.props.push('dataTransfer'); }