aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/Tween.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2014-04-25 18:26:36 -0400
committerDave Methvin <dave.methvin@gmail.com>2014-06-10 23:28:14 -0400
commitd837f119c3729565103005d5d7fa89e1dd8110cb (patch)
tree03f41c64a16faab49698d7fa6c2519c79874d706 /src/effects/Tween.js
parentff9dcfb0c4238d405af92cbd4ac27e0a36c6ff0c (diff)
downloadjquery-d837f119c3729565103005d5d7fa89e1dd8110cb.tar.gz
jquery-d837f119c3729565103005d5d7fa89e1dd8110cb.zip
Support: clean up comments and Support notation
Closes gh-1577
Diffstat (limited to 'src/effects/Tween.js')
-rw-r--r--src/effects/Tween.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/effects/Tween.js b/src/effects/Tween.js
index d1e4dca8b..9acd8d0cc 100644
--- a/src/effects/Tween.js
+++ b/src/effects/Tween.js
@@ -64,17 +64,18 @@ Tween.propHooks = {
return tween.elem[ tween.prop ];
}
- // passing an empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails
- // so, simple values such as "10px" are parsed to Float.
- // complex values such as "rotate(1rad)" are returned as is.
+ // Passing an empty string as a 3rd parameter to .css will automatically
+ // attempt a parseFloat and fallback to a string if the parse fails.
+ // Simple values such as "10px" are parsed to Float;
+ // complex values such as "rotate(1rad)" are returned as-is.
result = jQuery.css( tween.elem, tween.prop, "" );
// Empty strings, null, undefined and "auto" are converted to 0.
return !result || result === "auto" ? 0 : result;
},
set: function( tween ) {
- // use step hook for back compat - use cssHook if its there - use .style if its
- // available and use plain properties where available
+ // Use step hook for back compat.
+ // Use cssHook if its there.
+ // Use .style if available and use plain properties where available.
if ( jQuery.fx.step[ tween.prop ] ) {
jQuery.fx.step[ tween.prop ]( tween );
} else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
@@ -88,7 +89,6 @@ Tween.propHooks = {
// Support: IE9
// Panic based approach to setting things on disconnected nodes
-
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
set: function( tween ) {
if ( tween.elem.nodeType && tween.elem.parentNode ) {