jquery-source 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/jquery-source/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.js +11 -9
- metadata +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery JavaScript Library v1.6.
|
2
|
+
* jQuery JavaScript Library v1.6.4
|
3
3
|
* http://jquery.com/
|
4
4
|
*
|
5
5
|
* Copyright 2011, John Resig
|
@@ -11,7 +11,7 @@
|
|
11
11
|
* Copyright 2011, The Dojo Foundation
|
12
12
|
* Released under the MIT, BSD, and GPL Licenses.
|
13
13
|
*
|
14
|
-
* Date:
|
14
|
+
* Date: Mon Sep 12 18:54:48 2011 -0400
|
15
15
|
*/
|
16
16
|
(function( window, undefined ) {
|
17
17
|
|
@@ -213,7 +213,7 @@ jQuery.fn = jQuery.prototype = {
|
|
213
213
|
selector: "",
|
214
214
|
|
215
215
|
// The current version of jQuery being used
|
216
|
-
jquery: "1.6.
|
216
|
+
jquery: "1.6.4",
|
217
217
|
|
218
218
|
// The default length of a jQuery object is 0
|
219
219
|
length: 0,
|
@@ -1179,7 +1179,7 @@ jQuery.support = (function() {
|
|
1179
1179
|
|
1180
1180
|
// Preliminary tests
|
1181
1181
|
div.setAttribute("className", "t");
|
1182
|
-
div.innerHTML = " <link
|
1182
|
+
div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
|
1183
1183
|
|
1184
1184
|
|
1185
1185
|
all = div.getElementsByTagName( "*" );
|
@@ -1414,7 +1414,7 @@ jQuery.boxModel = jQuery.support.boxModel;
|
|
1414
1414
|
|
1415
1415
|
|
1416
1416
|
var rbrace = /^(?:\{.*\}|\[.*\])$/,
|
1417
|
-
rmultiDash = /([
|
1417
|
+
rmultiDash = /([A-Z])/g;
|
1418
1418
|
|
1419
1419
|
jQuery.extend({
|
1420
1420
|
cache: {},
|
@@ -1729,7 +1729,8 @@ function dataAttr( elem, key, data ) {
|
|
1729
1729
|
// If nothing was found internally, try to fetch any
|
1730
1730
|
// data from the HTML5 data-* attribute
|
1731
1731
|
if ( data === undefined && elem.nodeType === 1 ) {
|
1732
|
-
|
1732
|
+
|
1733
|
+
var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
|
1733
1734
|
|
1734
1735
|
data = elem.getAttribute( name );
|
1735
1736
|
|
@@ -3270,8 +3271,9 @@ if ( !jQuery.support.submitBubbles ) {
|
|
3270
3271
|
setup: function( data, namespaces ) {
|
3271
3272
|
if ( !jQuery.nodeName( this, "form" ) ) {
|
3272
3273
|
jQuery.event.add(this, "click.specialSubmit", function( e ) {
|
3274
|
+
// Avoid triggering error on non-existent type attribute in IE VML (#7071)
|
3273
3275
|
var elem = e.target,
|
3274
|
-
type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
|
3276
|
+
type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
|
3275
3277
|
|
3276
3278
|
if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
|
3277
3279
|
trigger( "submit", this, arguments );
|
@@ -3280,7 +3282,7 @@ if ( !jQuery.support.submitBubbles ) {
|
|
3280
3282
|
|
3281
3283
|
jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
|
3282
3284
|
var elem = e.target,
|
3283
|
-
type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
|
3285
|
+
type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
|
3284
3286
|
|
3285
3287
|
if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
|
3286
3288
|
trigger( "submit", this, arguments );
|
@@ -9041,4 +9043,4 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {
|
|
9041
9043
|
|
9042
9044
|
// Expose jQuery to the global object
|
9043
9045
|
window.jQuery = window.$ = jQuery;
|
9044
|
-
})(window);
|
9046
|
+
})(window);
|