fengyuanchen / cropper

⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
MIT License
7.75k stars 1.74k forks source link

Cropper will not register itself when jQuery not as $ #876

Closed risototh closed 7 years ago

risototh commented 7 years ago

We are not using $ for jQuery and the current version (v3.0.0-rc) of cropper will not register itself with jQuery.

Uncaught TypeError: $.extend is not a function at cropper.js:3085 at $ (cropper.js:14) at cropper.js:15

Solution is to change (factory(global.$)); on line 14 to (factory(global.jQuery));