aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-04-29 22:04:52 +0200
committerGitHub <noreply@github.com>2019-04-29 22:04:52 +0200
commit58f0c00bed695f934bb205c6115e5fe99dd5c27b (patch)
tree17bd1d5645fcaa3bfb6f7e0f2d08e1a8e423a801 /src
parent6f2fae7c410dcb5876814866a03fc819f0502290 (diff)
downloadjquery-58f0c00bed695f934bb205c6115e5fe99dd5c27b.tar.gz
jquery-58f0c00bed695f934bb205c6115e5fe99dd5c27b.zip
Core: Remove deprecated jQuery APIs
Fixes gh-4056 Closes gh-4364
Diffstat (limited to 'src')
-rw-r--r--src/css.js4
-rw-r--r--src/css/finalPropName.js9
-rw-r--r--src/deprecated.js24
3 files changed, 4 insertions, 33 deletions
diff --git a/src/css.js b/src/css.js
index f9277bf6c..c92fc684a 100644
--- a/src/css.js
+++ b/src/css.js
@@ -199,10 +199,6 @@ jQuery.extend( {
}
},
- // Add in properties whose names you wish to fix before
- // setting or getting the value
- cssProps: {},
-
// Get and set the style property on a DOM Node
style: function( elem, name, value, extra ) {
diff --git a/src/css/finalPropName.js b/src/css/finalPropName.js
index 352d18a27..c290eb2b4 100644
--- a/src/css/finalPropName.js
+++ b/src/css/finalPropName.js
@@ -1,7 +1,6 @@
define( [
- "../var/document",
- "../core"
-], function( document, jQuery ) {
+ "../var/document"
+], function( document ) {
"use strict";
@@ -24,9 +23,9 @@ function vendorPropName( name ) {
}
}
-// Return a potentially-mapped jQuery.cssProps or vendor prefixed property
+// Return a potentially-mapped vendor prefixed property
function finalPropName( name ) {
- var final = jQuery.cssProps[ name ] || vendorProps[ name ];
+ var final = vendorProps[ name ];
if ( final ) {
return final;
diff --git a/src/deprecated.js b/src/deprecated.js
index e24de4818..ecdf9f450 100644
--- a/src/deprecated.js
+++ b/src/deprecated.js
@@ -71,28 +71,4 @@ jQuery.holdReady = function( hold ) {
jQuery.ready( true );
}
};
-jQuery.isArray = Array.isArray;
-jQuery.parseJSON = JSON.parse;
-jQuery.nodeName = nodeName;
-jQuery.isFunction = isFunction;
-jQuery.isWindow = isWindow;
-jQuery.camelCase = cssCamelCase;
-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 ) );
-};
-
} );