Opened 13 years ago

Last modified 13 years ago

#3912 closed bug

Effects problems with non-numeric duration — at Initial Version

Reported by: kbwood Owned by:
Priority: minor Milestone: 1.7
Component: ui.effects.core Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:


Some effects perform a calculation on the duration before proceeding with the animation, such as bounce, fold, and pulsate. However, they fail to cater for non-numeric durations, such as slow, normal, or fast. There needs to be a common function to resolve the non-numeric duration to a numeric value that can then be used without further problems. The code below is based on the jQuery 1.3 code.

function resolveDuration(duration) {

return (typeof duration === "number" && !isNaN(duration) ? duration :



Change History (0)

Note: See TracTickets for help on using tickets.