Skip to content

Commit

Permalink
jQuery 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Reichert committed Apr 6, 2017
1 parent fca87a8 commit d0bbd17
Show file tree
Hide file tree
Showing 34 changed files with 564 additions and 446 deletions.
2 changes: 1 addition & 1 deletion library/functions/enqueue-scripts-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function sr_enqueue_scripts_styles()

// use newest jquery from /library/vendor/
wp_deregister_script('jquery'); // disable WP internal jquery for own version
wp_enqueue_script( 'jquery', get_template_directory_uri() . '/library/vendor/jquery/dist/jquery.min.js', array( ), '3.1.1', true );
wp_enqueue_script( 'jquery', get_template_directory_uri() . '/library/vendor/jquery/dist/jquery.min.js', array( ), '3.2.1', true );
wp_deregister_script('jquery-migrate'); // disable WP internal jquery-migrate for own version
wp_enqueue_script( 'jquery-migrate', get_template_directory_uri() . '/assets/js/jquery-migrate-3.0.0.min.js', array( ), '3.0.0', true );

Expand Down
10 changes: 5 additions & 5 deletions library/vendor/jquery/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"library"
],
"homepage": "https://github.com/jquery/jquery-dist",
"version": "3.1.1",
"_release": "3.1.1",
"version": "3.2.1",
"_release": "3.2.1",
"_resolution": {
"type": "version",
"tag": "3.1.1",
"commit": "1b30f3ad466ebf2714d47eda34dbd7fdf6849fe3"
"tag": "3.2.1",
"commit": "77d2a51d0520d2ee44173afdf4e40a9201f5964e"
},
"_source": "https://github.com/jquery/jquery-dist.git",
"_target": "^3.1.1",
"_target": "^3.2.1",
"_originalSource": "jquery",
"_direct": true
}
6 changes: 6 additions & 0 deletions library/vendor/jquery/AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,9 @@ Damian Senn <jquery@topaxi.codes>
Ralin Chimev <ralin.chimev@gmail.com>
Felipe Sateler <fsateler@gmail.com>
Christophe Tafani-Dereeper <christophetd@hotmail.fr>
Manoj Kumar <nithmanoj@gmail.com>
David Broder-Rodgers <broder93@gmail.com>
Alex Louden <alex@louden.com>
Alex Padilla <alexonezero@outlook.com>
南漂一卒 <shiy007@qq.com>
karan-96 <karanbatra96@gmail.com>
2 changes: 1 addition & 1 deletion library/vendor/jquery/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright jQuery Foundation and other contributors, https://jquery.org/
Copyright JS Foundation and other contributors, https://js.foundation/

This software consists of voluntary contributions made by many
individuals. For exact contribution history, see the revision history
Expand Down
4 changes: 3 additions & 1 deletion library/vendor/jquery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/).
For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).

If upgrading, please see the [blog post for 3.2.1](https://blog.jquery.com/2017/03/20/jquery-3-2-1-now-available/). This includes notable differences from the previous version and a more readable changelog.

## Including jQuery

Below are some of the most common ways to include jQuery.
Expand All @@ -14,7 +16,7 @@ Below are some of the most common ways to include jQuery.
#### Script tag

```html
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
```

#### Babel
Expand Down
12 changes: 3 additions & 9 deletions library/vendor/jquery/dist/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ define( [
"use strict";

var
version = "3.1.1",
version = "3.2.1",

// Define a local copy of jQuery
jQuery = function( selector, context ) {
Expand Down Expand Up @@ -172,11 +172,11 @@ jQuery.extend = jQuery.fn.extend = function() {

// Recurse if we're merging plain objects or arrays
if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
( copyIsArray = jQuery.isArray( copy ) ) ) ) {
( copyIsArray = Array.isArray( copy ) ) ) ) {

if ( copyIsArray ) {
copyIsArray = false;
clone = src && jQuery.isArray( src ) ? src : [];
clone = src && Array.isArray( src ) ? src : [];

} else {
clone = src && jQuery.isPlainObject( src ) ? src : {};
Expand Down Expand Up @@ -215,8 +215,6 @@ jQuery.extend( {
return jQuery.type( obj ) === "function";
},

isArray: Array.isArray,

isWindow: function( obj ) {
return obj != null && obj === obj.window;
},
Expand Down Expand Up @@ -291,10 +289,6 @@ jQuery.extend( {
return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
},

nodeName: function( elem, name ) {
return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
},

each: function( obj, callback ) {
var length, i = 0;

Expand Down
Loading

0 comments on commit d0bbd17

Please sign in to comment.