Well, as it mentioned and as the documentation for
hover() says that function is/was a shortcut for
mouseleave(), so that’s what you should use instead.
I still wonder why they didn’t mention the deprecation of hover() in the documentation.
Donít click this link!