Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   Ошибка Uncaught TypeError: ((n.event.special[g.origType] || {}) (https://javascript.ru/forum/jquery/78082-oshibka-uncaught-typeerror-n-event-special%5Bg-origtype%5D-%7C%7C-%7B%7D.html)

zava75 24.07.2019 10:07

Ошибка Uncaught TypeError: ((n.event.special[g.origType] || {})
 
Добрый день. Может кто знает в чём ошибка jquery-2.1.1.min.js:3 Uncaught TypeError: ((n.event.special[g.origType] || {}).handle || g.handler).apply is not a function
function hideCart() { 
        $("#cart").removeClass('open'); 
    }
    // Cart to shop 
    $("#cart").on('mouseover', function() {
                $(this).addClass("open");
                $(this).mouseout( setTimeout( hideCart , 4000 ));
    });

скрипт работает но вот в консоли ошибка( :help:

zava75 24.07.2019 10:11

Решено))
function hideCart() { 
        $("#cart").removeClass('open'); 
    }
    // Cart to shop 
    $("#cart").on('mouseover', function() {
                $(this).addClass("open");
                $(this).mouseout(function() { setTimeout( hideCart , 4000 ); });
    });


Часовой пояс GMT +3, время: 11:30.