diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2009-03-23 01:55:17 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2009-03-23 01:55:17 +0000 |
commit | f8ef75eb9124ce924be5fb521c783efd5c996e33 (patch) | |
tree | e249197bfb42c77b26e068954cbcf70b9c5bb91a /src/fx.js | |
parent | e06da1724cf05a83e14efa8b854348ac4e4a599a (diff) | |
download | jquery-f8ef75eb9124ce924be5fb521c783efd5c996e33.tar.gz jquery-f8ef75eb9124ce924be5fb521c783efd5c996e33.zip |
remove trailing spaces
Diffstat (limited to 'src/fx.js')
-rw-r--r-- | src/fx.js | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -24,26 +24,26 @@ jQuery.fn.extend({ } else { for ( var i = 0, l = this.length; i < l; i++ ){ var old = jQuery.data(this[i], "olddisplay"); - + this[i].style.display = old || ""; - + if ( jQuery.css(this[i], "display") === "none" ) { var tagName = this[i].tagName, display; - + if ( elemdisplay[ tagName ] ) { display = elemdisplay[ tagName ]; } else { var elem = jQuery("<" + tagName + " />").appendTo("body"); - + display = elem.css("display"); if ( display === "none" ) display = "block"; - + elem.remove(); - + elemdisplay[ tagName ] = display; } - + jQuery.data(this[i], "olddisplay", display); } } @@ -53,7 +53,7 @@ jQuery.fn.extend({ for ( var i = 0, l = this.length; i < l; i++ ){ this[i].style.display = jQuery.data(this[i], "olddisplay") || ""; } - + return this; } }, @@ -103,11 +103,11 @@ jQuery.fn.extend({ var optall = jQuery.speed(speed, easing, callback); return this[ optall.queue === false ? "each" : "queue" ](function(){ - + var opt = jQuery.extend({}, optall), p, hidden = this.nodeType == 1 && jQuery(this).is(":hidden"), self = this; - + for ( p in prop ) { if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden ) return opt.complete.call(this); @@ -362,7 +362,7 @@ jQuery.fx.prototype = { if ( this.options.hide || this.options.show ) for ( var p in this.options.curAnim ) jQuery.style(this.elem, p, this.options.orig[p]); - + // Execute the complete function this.options.complete.call( this.elem ); } |