dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "jquery.byteLimit: Handle characters outside BMP (surrogate pairs) when trimming"
[lhc/web/wiklou.git]
/
resources
/
src
/
jquery
/
jquery.color.js
diff --git
a/resources/src/jquery/jquery.color.js
b/resources/src/jquery/jquery.color.js
index
70dc105
..
894cf86
100644
(file)
--- a/
resources/src/jquery/jquery.color.js
+++ b/
resources/src/jquery/jquery.color.js
@@
-16,7
+16,7
@@
color = $.css( elem, attr );
// Keep going until we find an element that has color, or we hit the body
color = $.css( elem, attr );
// Keep going until we find an element that has color, or we hit the body
- if ( color !== '' && color !== 'transparent' ||
$.nodeName( elem, 'body' )
) {
+ if ( color !== '' && color !== 'transparent' ||
elem.nodeName.toLowerCase() === 'body'
) {
break;
}
break;
}
@@
-28,7
+28,7
@@
}
// We override the animation for all of these color styles
}
// We override the animation for all of these color styles
-
$.each(
[
+ [
'backgroundColor',
'borderBottomColor',
'borderLeftColor',
'backgroundColor',
'borderBottomColor',
'borderLeftColor',
@@
-36,7
+36,7
@@
'borderTopColor',
'color',
'outlineColor'
'borderTopColor',
'color',
'outlineColor'
- ]
, function ( i,
attr ) {
+ ]
.forEach( function (
attr ) {
$.fx.step[ attr ] = function ( fx ) {
if ( !fx.colorInit ) {
fx.start = getColor( fx.elem, attr );
$.fx.step[ attr ] = function ( fx ) {
if ( !fx.colorInit ) {
fx.start = getColor( fx.elem, attr );