]> source.dussan.org Git - jquery.git/commit
Fixes #7912. Make sure .cur() only returns 0 as fallback value when it needs to ...
authorlouisremi <louisremi@louisremi-laptop.(none)>
Thu, 17 Feb 2011 16:26:23 +0000 (17:26 +0100)
committerAnton M <obhvsbypqghgc@gmail.com>
Thu, 17 Feb 2011 16:26:23 +0000 (17:26 +0100)
commit85d9343271da85fc945bf37a604873eaf247a3a7
tree302ce8461a3ed1096a4a396189ec3a87dcaedeb0
parentb9f5e2b97458f89cbcac3a333ba95b0eac568d49
Fixes #7912. Make sure .cur() only returns 0 as fallback value when it needs to ("", auto, undefined, null).

This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by
.css() if it isn't a number, number-alike or a value that needs a fallback to 0.
This way fx.start doesn't need to be recalculated for complex values.
src/effects.js
test/unit/effects.js