mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
parent
ae31f2b3b4
commit
0940cb9bd2
@ -59,6 +59,12 @@ domEqual.attributes = [
|
||||
"title"
|
||||
];
|
||||
|
||||
function camelCase( string ) {
|
||||
return string.replace( /-([\da-z])/gi, function( all, letter ) {
|
||||
return letter.toUpperCase();
|
||||
} );
|
||||
}
|
||||
|
||||
function getElementStyles( elem ) {
|
||||
var styles = {};
|
||||
var style = elem.ownerDocument.defaultView ?
|
||||
@ -71,7 +77,7 @@ function getElementStyles( elem ) {
|
||||
while ( len-- ) {
|
||||
key = style[ len ];
|
||||
if ( typeof style[ key ] === "string" ) {
|
||||
styles[ $.camelCase( key ) ] = style[ key ];
|
||||
styles[ camelCase( key ) ] = style[ key ];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -746,6 +746,12 @@ $.each(
|
||||
}
|
||||
);
|
||||
|
||||
function camelCase( string ) {
|
||||
return string.replace( /-([\da-z])/gi, function( all, letter ) {
|
||||
return letter.toUpperCase();
|
||||
} );
|
||||
}
|
||||
|
||||
function getElementStyles( elem ) {
|
||||
var key, len,
|
||||
style = elem.ownerDocument.defaultView ?
|
||||
@ -758,7 +764,7 @@ function getElementStyles( elem ) {
|
||||
while ( len-- ) {
|
||||
key = style[ len ];
|
||||
if ( typeof style[ key ] === "string" ) {
|
||||
styles[ $.camelCase( key ) ] = style[ key ];
|
||||
styles[ camelCase( key ) ] = style[ key ];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user