kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
615 stars 148 forks source link

js code fails with jquery 3.5 #79

Open eradin opened 4 years ago

eradin commented 4 years ago

I added jquery 3.5 to my code and I get the following error

jQuery.Deferred exception: SmoothDnD is not a function @http://localhost/sandbox/pdfjs/js/index.js:30:20 e@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:30005 l/</t<@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:30307 setTimeout handlerl/<@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:30516 c@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:28294 fireWith@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:29039 fire@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:29075 c@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:28294 fireWith@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:29039 ready@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:32012 B@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:31791 EventListener.handleEvent@https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:32160 @https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:220 @https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js:2:225 undefined jquery.min.js:2:31560

Uncaught TypeError: SmoothDnD is not a function

http://localhost/sandbox/pdfjs/js/index.js:30 jQuery 13 My call to smooth is the following: var containerElement = document.getElementById('app'); var d = SmoothDnD(containerElement, {}); I'm looking to integrate a simple DnD library and this looked promising. Would like to get this up to test.