Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wax.leaf.util eventoffset (bad existence test on variable, return js error) #177

Open
wizidot opened this issue Mar 22, 2012 · 0 comments
Open

Comments

@wizidot
Copy link

wizidot commented Mar 22, 2012

Hi,
in wax.leaf.js L2330, when you want use wax.movetip the script have to check the mouse position
but it seems there is a little test who cause js error

if (e.pageX|| e.pageY) {
// Good browsers 

i purpose a little patch :

if (typeof e=="undefined") var e = (window.event)?window.event:return {x:0,y:0};
if (typeof e.pageX!="undefined" || typeof e.pageY!="undefined") {
// Good browsers 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant