update $.fn.onAnimated and $.fn.onTransitioned