Trouble with removeEventListener (Mobile FSS + Webkit)
Jacob Farber
jacob.farber at utoronto.ca
Wed Jul 8 13:47:38 UTC 2009
Hi Everyone,
Im having some trouble with a new Webkit event called "webkitTransitionEnd" (triggered by using CSS Transitions)
To add the event to an element, this syntax works:
fluid.unwrap(element).addEventListener("webkitTransitionEnd", options.callback, false);
However, to remove the listener this syntax isn't running:
fluid.unwrap(element).removeEventListener("webkitTransitionEnd", options.callback, true);
The callback is queueing up and firing multiple times, since the callback is only being added over and over and never removed.
I've tried using a slew of methods to rewrite these events, rebind them in different ways, etc. The removeEventListener method hasn't worked so far.
Do you see any obvious mistakes - syntax or otherwise?
Thanks for the help,
Jacob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.idrc.ocad.ca/pipermail/fluid-work/attachments/20090708/3da9991f/attachment.htm>
More information about the fluid-work
mailing list