briancherne / jquery-hoverIntent

hoverIntent jQuery Plug-in

Home Page:https://briancherne.github.io/jquery-hoverIntent/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible bug

emarketmedia opened this issue · comments

Hello,
I loaded a code:

   $(document).ready(function(){
        $("#sidebar").hoverIntent(alert("mouseover"),alert("mouseout"));
    });

..to make a test.

Result is only two errors on log.

Schermata 2019-10-16 alle 12 08 17

Please check, thanks.

commented

Does this produce any errors?

$(document).ready(function(){
     $("#sidebar").hoverIntent(function(){alert("mouseover")},function(){alert("mouseout")});
});
commented

Thanks @emarketmedia for reporting, and thanks @roydukkey for responding.

Indeed, your issue was that the plugin wasn't being invoked properly as you were invoking alert(), which has no return value (undefined), instead of passing a function.

I'll close this ticket. :)