-
Notifications
You must be signed in to change notification settings - Fork 101
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
Test case for $.once #75
Comments
It seems like Chrome understands both |
@zdfs In this case I suppose that on chrome and safari the counter would be immediately |
Oh, |
Does it pass now? |
The test case works fine both in Chrome and Safari. |
Awesome, closing this then! Thanks @fcalderan! |
Looking into the source code I've found an undocumented method
once
and I've tested it: in this example I want to move one div twice, but I want to execute thetransitionend
handler just once.Expecting result: the number inside the
foobar
div should be increased one time in all browsersActual result: the number inside the div increases twice on Chrome
47.0.2526.80 (64-bit)
andSafari 9.0.2 (9537.86.3.9.1)
and increases properly once on Firefox42.0
on aMacOSX 10.9.5
(see screenshot below about the comparison between Chrome and Firefox)Hint: it seems the problem is related to
'webkitTransitionEnd transitionend'
event type string: if I specify only'transitionend'
the demo works as expected in all the tested browsers.This is my test case
The text was updated successfully, but these errors were encountered: