fix for #4234. hover can take one function to use for both enter and leave.