diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-04-29 21:06:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 21:06:53 +0200 |
commit | 8fae21200e80647fec4389995c4879948d11ad66 (patch) | |
tree | e54dca524d936d0258aebb22b59a20fc4d982431 /src/css.js | |
parent | eb6c0a7c97b1b3cf00144de12d945c9c569f935c (diff) | |
download | jquery-8fae21200e80647fec4389995c4879948d11ad66.tar.gz jquery-8fae21200e80647fec4389995c4879948d11ad66.zip |
Data: Separate data & css/effects camelCase implementations
The camelCase implementation used by the data module no longer turns `-ms-foo`
into `msFoo` but to `MsFoo` now. This is because `data` is supposed to be
a generic utility not specifically bound to CSS use cases.
Fixes gh-3355
Closes gh-4365
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/css.js b/src/css.js index d6354a310..f9277bf6c 100644 --- a/src/css.js +++ b/src/css.js @@ -1,11 +1,11 @@ define( [ "./core", "./core/access", - "./core/camelCase", "./var/rcssNum", "./css/var/rnumnonpx", "./css/var/cssExpand", "./css/isAutoPx", + "./css/cssCamelCase", "./css/var/getStyles", "./css/var/swap", "./css/curCSS", @@ -17,7 +17,7 @@ define( [ "./core/init", "./core/ready", "./selector" // contains -], function( jQuery, access, camelCase, rcssNum, rnumnonpx, cssExpand, isAutoPx, +], function( jQuery, access, rcssNum, rnumnonpx, cssExpand, isAutoPx, cssCamelCase, getStyles, swap, curCSS, adjustCSS, addGetHookIf, support, finalPropName ) { "use strict"; @@ -213,7 +213,7 @@ jQuery.extend( { // Make sure that we're working with the right name var ret, type, hooks, - origName = camelCase( name ), + origName = cssCamelCase( name ), isCustomProp = rcustomProp.test( name ), style = elem.style; @@ -281,7 +281,7 @@ jQuery.extend( { css: function( elem, name, extra, styles ) { var val, num, hooks, - origName = camelCase( name ), + origName = cssCamelCase( name ), isCustomProp = rcustomProp.test( name ); // Make sure that we're working with the right name. We don't |