]> source.dussan.org Git - jquery.git/commitdiff
jquery fx: Fixed redundant code
authorAriel Flesler <aflesler@gmail.com>
Thu, 25 Dec 2008 21:00:08 +0000 (21:00 +0000)
committerAriel Flesler <aflesler@gmail.com>
Thu, 25 Dec 2008 21:00:08 +0000 (21:00 +0000)
src/fx.js

index 2d6433dd38549b35ee9bd5742affba41a945546b..794b96fc786018283fcbfd00442703764ea21b32 100644 (file)
--- a/src/fx.js
+++ b/src/fx.js
@@ -18,7 +18,7 @@ jQuery.fn.extend({
                                        if ( elemdisplay[ tagName ] ) {
                                                display = elemdisplay[ tagName ];
                                        } else {
-                                               var elem = jQuery("<" + this[i].tagName + " />").appendTo("body");
+                                               var elem = jQuery("<" + tagName + " />").appendTo("body");
                                                
                                                display = elem.css("display");
                                                if ( display === "none" )
@@ -26,7 +26,7 @@ jQuery.fn.extend({
                                                
                                                elem.remove();
                                                
-                                               elemdisplay[ this[i].tagName ] = display;
+                                               elemdisplay[ tagName ] = display;
                                        }
                                        
                                        this[i].style.display = jQuery.data(this[i], "olddisplay", display);