# HG changeset patch # User Sylvain Thénault # Date 1316101018 -7200 # Node ID 8d8bde949535c28dfc24098573fb4133ea4aebbb # Parent b8027b317d1c345bf0ab25946c3ebf858454b8ca [jquery] upgrade to jquery 1.6.4 diff -r b8027b317d1c -r 8d8bde949535 web/data/jquery.js --- a/web/data/jquery.js Thu Sep 15 17:03:37 2011 +0200 +++ b/web/data/jquery.js Thu Sep 15 17:36:58 2011 +0200 @@ -1,5 +1,5 @@ /*! - * jQuery JavaScript Library v1.6.3 + * jQuery JavaScript Library v1.6.4 * http://jquery.com/ * * Copyright 2011, John Resig @@ -11,7 +11,7 @@ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * - * Date: Wed Aug 31 10:35:15 2011 -0400 + * Date: Mon Sep 12 18:54:48 2011 -0400 */ (function( window, undefined ) { @@ -213,7 +213,7 @@ selector: "", // The current version of jQuery being used - jquery: "1.6.3", + jquery: "1.6.4", // The default length of a jQuery object is 0 length: 0, @@ -1179,7 +1179,7 @@ // Preliminary tests div.setAttribute("className", "t"); - div.innerHTML = "
a"; + div.innerHTML = "
a"; all = div.getElementsByTagName( "*" ); @@ -1414,7 +1414,7 @@ var rbrace = /^(?:\{.*\}|\[.*\])$/, - rmultiDash = /([a-z])([A-Z])/g; + rmultiDash = /([A-Z])/g; jQuery.extend({ cache: {}, @@ -1729,7 +1729,8 @@ // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { - var name = "data-" + key.replace( rmultiDash, "$1-$2" ).toLowerCase(); + + var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); data = elem.getAttribute( name ); @@ -3270,8 +3271,9 @@ setup: function( data, namespaces ) { if ( !jQuery.nodeName( this, "form" ) ) { jQuery.event.add(this, "click.specialSubmit", function( e ) { + // Avoid triggering error on non-existent type attribute in IE VML (#7071) var elem = e.target, - type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : ""; if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) { trigger( "submit", this, arguments ); @@ -3280,7 +3282,7 @@ jQuery.event.add(this, "keypress.specialSubmit", function( e ) { var elem = e.target, - type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : ""; if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) { trigger( "submit", this, arguments );