briancherne / jquery-hoverIntent

hoverIntent jQuery Plug-in
https://briancherne.github.io/jquery-hoverIntent/
MIT License
826 stars 252 forks source link

Possible bug #78

Closed emarketmedia closed 4 years ago

emarketmedia commented 4 years ago

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.

roydukkey commented 4 years ago

Does this produce any errors?

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

Working fine! Thanks!

Il giorno 16 ott 2019, alle ore 19:54, roydukkey notifications@github.com ha scritto:

Do this produce an errors?

$(document).ready(function(){ $("#sidebar").hoverIntent(function(){alert("mouseover")},function(){alert("mouseout")}); }); — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/briancherne/jquery-hoverIntent/issues/78?email_source=notifications&email_token=ACVEER2OE7S3NTTBPXB4CWTQO5IMVA5CNFSM4JBJIW3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBNMCGQ#issuecomment-542818586, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVEER6YIYYEJDBI5T5HOSLQO5IMVANCNFSM4JBJIW3A.

usmonster commented 4 years ago

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. :)