Improves support for arbitrary numbers in data keys. Fixes #9318

This commit is contained in:
Rick Waldron 2011-08-05 10:17:24 -04:00
parent 22028e403f
commit e7af6a296b

View File

@ -46,11 +46,11 @@ var jQuery = function( selector, context ) {
rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
// Matches dashed string for camelizing
rdashAlpha = /-([a-z])/ig,
rdashAlpha = /-([a-z]|[0-9])/ig,
// Used by jQuery.camelCase as callback to replace()
fcamelCase = function( all, letter ) {
return letter.toUpperCase();
return ( letter + "" ).toUpperCase();
},
// Keep a UserAgent string for use with jQuery.browser