Closed ghost closed 11 years ago
Good catch and thanks for the detailed report. Your expected outcome is as I had intended it so it appears I've accidentally defined e
in the the transitionend callback's scope. If you want to send a pull request with the e
removed from that callback then I'll merge it in otherwise I'll look to make the change as soon as I get a chance.
STEPS TO REPLICATE:
translate3d
, and using the defaultslide
value foroption.fx
EXPECTED RESULTS:
myHandler
receives a jQuerycarouselafter
event with anoriginalEvent
having a type ofcarousel:next
ACTUAL RESULTS:
myHandler
receives a jQuerycarouselafter
event with anoriginalEvent
having a type oftransitionend
DISCUSSION: This appears to be related to this code snippet (Line 542):
It appears that you are overriding the original event object
e
by using it as the parameter for your anonymous function. Removing thee
parameter, or renaming it toev
, fixes the issue.However, I'm unsure of your intent for this block. Are you intending to propagate the
transitionend
event, or override it with thecarousel:next
as we expect?