Skip to content

js code fails with jquery 3.5 #79

@eradin

Description

@eradin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions