update components
This commit is contained in:
parent
e6183509f8
commit
c01a55384e
26 changed files with 296 additions and 115 deletions
|
@ -1,3 +1,7 @@
|
|||
/* global Symbol */
|
||||
// Defining this global in .eslintrc would create a danger of using the global
|
||||
// unguarded in another place, it seems safer to define global only for this module
|
||||
|
||||
define( [
|
||||
"./var/arr",
|
||||
"./var/document",
|
||||
|
@ -20,7 +24,7 @@ define( [
|
|||
"use strict";
|
||||
|
||||
var
|
||||
version = "3.0.0",
|
||||
version = "3.1.0",
|
||||
|
||||
// Define a local copy of jQuery
|
||||
jQuery = function( selector, context ) {
|
||||
|
@ -252,7 +256,11 @@ jQuery.extend( {
|
|||
},
|
||||
|
||||
isEmptyObject: function( obj ) {
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
// See https://github.com/eslint/eslint/issues/6125
|
||||
var name;
|
||||
|
||||
for ( name in obj ) {
|
||||
return false;
|
||||
}
|
||||
|
@ -442,15 +450,9 @@ jQuery.extend( {
|
|||
support: support
|
||||
} );
|
||||
|
||||
// JSHint would error on this code due to the Symbol not being defined in ES5.
|
||||
// Defining this global in .jshintrc would create a danger of using the global
|
||||
// unguarded in another place, it seems safer to just disable JSHint for these
|
||||
// three lines.
|
||||
/* jshint ignore: start */
|
||||
if ( typeof Symbol === "function" ) {
|
||||
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
|
||||
}
|
||||
/* jshint ignore: end */
|
||||
|
||||
// Populate the class2type map
|
||||
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue