nhoening/popup.js — pull request #6 by andersonk17474 (2013-05-16 01:45:15+00:00)
Title: js updates we were working on today

have a look. I'm sure lots more needs to be done. but i ran outta time.

I attempted to add a secondary function with a variable delay. I have it almost working. I want it to work like a tooltip, where it doesn't pop up until the user has been hovering over the target for a second or two. There is some strangeness with the mouseout seeming to not take effect some times when moving around the target element attached to the delay function. Maybe you can pick out the bug. The other oddity is on the first mouse over event for the delayed target element, the hover span pops up way to left of the screen. I was thinking i needed to reread the mouse pointer location, but functionizing that component didn't give me what i needed (access to the mouse x,y at that exact moment). I included my demo files for ease of seeing what i was working towards.