X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=b094acf0866b78f8f8e54576c30daf7a4da59d5a;hb=ea53a61a38ecdddaea6f344fcaf74bfe1d37397c;hp=4fe14f8a4bd27e1e0b0638dbcd66547d5bc07466;hpb=06ef8c06893595bbd03b57744837b491665900bc;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 4fe14f8..b094acf 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -390,6 +390,8 @@ jQuery.fn = jQuery.prototype = { * @test ok( $('#en').attr('lang') == "en", 'Check for lang attribute' ); * @test ok( $('#simon').attr('class') == "blog link", 'Check for class attribute' ); * @test ok( $('#name').attr('name') == "name", 'Check for name attribute' ); + * @test ok( $('#text1').attr('name') == "action", 'Check for name attribute' ); + * @test ok( $('#form').attr('action') == "formaction", 'Check for action attribute' ); * * @name attr * @type Object @@ -2129,8 +2131,11 @@ jQuery.extend({ var c = this.events[event.type]; + var args = [].slice.call( arguments, 1 ); + args.unshift( event ); + for ( var j in c ) { - if ( c[j].apply( this, [event] ) === false ) { + if ( c[j].apply( this, args ) === false ) { event.preventDefault(); event.stopPropagation(); returnValue = false;