X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=jquery%2Fjquery.js;h=369ff88d62537597a58f9a2ea2193bbf60cbb586;hb=82e0a5a810f09b601543d3406b65ac15bd22307e;hp=8be00be7fc0014d3a32f51ffab40a45f65e62523;hpb=879225b3ae8a519ff680b44285953d7db258606d;p=jquery.git diff --git a/jquery/jquery.js b/jquery/jquery.js index 8be00be..369ff88 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -748,8 +748,8 @@ jQuery.extend({ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ - for ( var i = 0; i < a.length; i++ ) - $(a[i])[n]( this ); + for ( var j = 0; j < a.length; j++ ) + $(a[j])[n]( this ); }); }; }); @@ -2137,7 +2137,7 @@ jQuery.macros = { * @name show * @type jQuery */ - show: function(){ + _show: function(){ this.style.display = this.oldblock ? this.oldblock : ""; if ( jQuery.css(this,"display") == "none" ) this.style.display = "block"; @@ -2153,7 +2153,7 @@ jQuery.macros = { * @name hide * @type jQuery */ - hide: function(){ + _hide: function(){ this.oldblock = this.oldblock || jQuery.css(this,"display"); if ( this.oldblock == "none" ) this.oldblock = "block"; @@ -2172,7 +2172,7 @@ jQuery.macros = { * @name toggle * @type jQuery */ - toggle: function(){ + _toggle: function(){ var d = jQuery.css(this,"display"); $(this)[ !d || d == "none" ? "show" : "hide" ](); }, @@ -2335,4 +2335,4 @@ jQuery.macros = { jQuery.event.trigger( type, data, this ); } } -}; \ No newline at end of file +};