miguel-perez / smoothState.js

Unobtrusive page transitions with jQuery.
MIT License
4.43k stars 508 forks source link

Incompatible with jQuery 3 #385

Open solarkraft opened 2 years ago

solarkraft commented 2 years ago

Running the demo code with current day jQuery results in

16:48:05.716 Uncaught TypeError: r.success is not a function
    g http://localhost:8080/lib/exe/js.php?t=krypton&tseed=369040dc7782b3784e776d94f2bd7fb0:1
    v http://localhost:8080/lib/exe/js.php?t=krypton&tseed=369040dc7782b3784e776d94f2bd7fb0:1
    w http://localhost:8080/lib/exe/js.php?t=krypton&tseed=369040dc7782b3784e776d94f2bd7fb0:1
    jQuery 8
    b http://localhost:8080/lib/exe/js.php?t=krypton&tseed=369040dc7782b3784e776d94f2bd7fb0:1
    u http://localhost:8080/lib/exe/js.php?t=krypton&tseed=369040dc7782b3784e776d94f2bd7fb0:1
    c http://localhost:8080/lib/exe/js.php?t=krypton&tseed=369040dc7782b3784e776d94f2bd7fb0:1
    jQuery 2
    c http://localhost:8080/lib/exe/js.php?t=krypton&tseed=369040dc7782b3784e776d94f2bd7fb0:1
    <anonymous> http://localhost:8080/lib/exe/js.php?t=krypton&tseed=369040dc7782b3784e776d94f2bd7fb0:1
    jQuery 12
        e
        t
        setTimeout handler*l/<
        c
        fireWith
        fire
        c
        fireWith
        ready
        setTimeout handler*
        <anonymous>
        <anonymous>
js.php:1:180390

(code is bundled).

I'm going to guess that it's related to jQuery dropping the function, see https://github.com/jquery/jquery/issues/3239.