aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-05-25 15:10:49 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-25 15:10:49 -0400
commit408c98fb4b8c1b6957cfe620711f9ea7645293ba (patch)
tree94269140f3e0e46bade558710a5a978a170909b4 /src/css.js
parentb8fc9d14a134f91f17bf96194da86d38231da005 (diff)
downloadjquery-408c98fb4b8c1b6957cfe620711f9ea7645293ba.tar.gz
jquery-408c98fb4b8c1b6957cfe620711f9ea7645293ba.zip
Landing pull request 383. Relocating jQuery.camelCase to core; Fixes #9368.
More Details: - https://github.com/jquery/jquery/pull/383 - http://bugs.jquery.com/ticket/9368
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/css.js b/src/css.js
index 661d800d7..46f6bf31f 100644
--- a/src/css.js
+++ b/src/css.js
@@ -2,7 +2,6 @@
var ralpha = /alpha\([^)]*\)/i,
ropacity = /opacity=([^)]*)/,
- rdashAlpha = /-([a-z])/ig,
// fixed for IE9, see #8346
rupper = /([A-Z]|^ms)/g,
rnumpx = /^-?\d+(?:px)?$/i,
@@ -16,11 +15,7 @@ var ralpha = /alpha\([^)]*\)/i,
curCSS,
getComputedStyle,
- currentStyle,
-
- fcamelCase = function( all, letter ) {
- return letter.toUpperCase();
- };
+ currentStyle;
jQuery.fn.css = function( name, value ) {
// Setting 'undefined' is a no-op
@@ -164,10 +159,6 @@ jQuery.extend({
for ( name in options ) {
elem.style[ name ] = old[ name ];
}
- },
-
- camelCase: function( string ) {
- return string.replace( rdashAlpha, fcamelCase );
}
});