Fix for callbacks that do not fire

I couldn’t get the callbacks (onover etc.) to fire unless I changed the line in the commit from using "this" to "element". Looks like a bug?