diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/css.js | 4 | ||||
-rw-r--r-- | src/css/finalPropName.js | 9 | ||||
-rw-r--r-- | src/deprecated.js | 24 |
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 ) ); -}; - } ); |