Update bower dependencies.
This commit is contained in:
parent
818bdad5af
commit
2beab45f32
185 changed files with 21480 additions and 8110 deletions
62
app/bower_components/jquery/src/deprecated.js
vendored
62
app/bower_components/jquery/src/deprecated.js
vendored
|
@ -1,7 +1,14 @@
|
|||
define( [
|
||||
"./core",
|
||||
"./core/nodeName"
|
||||
], function( jQuery, nodeName ) {
|
||||
"./core/nodeName",
|
||||
"./core/camelCase",
|
||||
"./core/toType",
|
||||
"./var/isFunction",
|
||||
"./var/isWindow",
|
||||
"./var/slice",
|
||||
|
||||
"./event/alias"
|
||||
], function( jQuery, nodeName, camelCase, toType, isFunction, isWindow, slice ) {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
@ -26,6 +33,37 @@ jQuery.fn.extend( {
|
|||
}
|
||||
} );
|
||||
|
||||
// Bind a function to a context, optionally partially applying any
|
||||
// arguments.
|
||||
// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
|
||||
// However, it is not slated for removal any time soon
|
||||
jQuery.proxy = function( fn, context ) {
|
||||
var tmp, args, proxy;
|
||||
|
||||
if ( typeof context === "string" ) {
|
||||
tmp = fn[ context ];
|
||||
context = fn;
|
||||
fn = tmp;
|
||||
}
|
||||
|
||||
// Quick check to determine if target is callable, in the spec
|
||||
// this throws a TypeError, but we will just return undefined.
|
||||
if ( !isFunction( fn ) ) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// Simulated bind
|
||||
args = slice.call( arguments, 2 );
|
||||
proxy = function() {
|
||||
return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
|
||||
};
|
||||
|
||||
// Set the guid of unique handler to the same of original handler, so it can be removed
|
||||
proxy.guid = fn.guid = fn.guid || jQuery.guid++;
|
||||
|
||||
return proxy;
|
||||
};
|
||||
|
||||
jQuery.holdReady = function( hold ) {
|
||||
if ( hold ) {
|
||||
jQuery.readyWait++;
|
||||
|
@ -36,5 +74,25 @@ jQuery.holdReady = function( hold ) {
|
|||
jQuery.isArray = Array.isArray;
|
||||
jQuery.parseJSON = JSON.parse;
|
||||
jQuery.nodeName = nodeName;
|
||||
jQuery.isFunction = isFunction;
|
||||
jQuery.isWindow = isWindow;
|
||||
jQuery.camelCase = camelCase;
|
||||
jQuery.type = toType;
|
||||
|
||||
jQuery.now = Date.now;
|
||||
|
||||
jQuery.isNumeric = function( obj ) {
|
||||
|
||||
// As of jQuery 3.0, isNumeric is limited to
|
||||
// strings and numbers (primitives or objects)
|
||||
// that can be coerced to finite numbers (gh-2662)
|
||||
var type = jQuery.type( obj );
|
||||
return ( type === "number" || type === "string" ) &&
|
||||
|
||||
// parseFloat NaNs numeric-cast false positives ("")
|
||||
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
|
||||
// subtraction forces infinities to NaN
|
||||
!isNaN( obj - parseFloat( obj ) );
|
||||
};
|
||||
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue