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 "Fix jump-to-nav element overlap on RCFilters"
[lhc/web/wiklou.git]
/
resources
/
src
/
jquery
/
jquery.colorUtil.js
diff --git
a/resources/src/jquery/jquery.colorUtil.js
b/resources/src/jquery/jquery.colorUtil.js
index
a5b136d
..
d46d009
100644
(file)
--- a/
resources/src/jquery/jquery.colorUtil.js
+++ b/
resources/src/jquery/jquery.colorUtil.js
@@
-29,6
+29,9
@@
if ( color && Array.isArray( color ) && color.length === 3 ) {
return color;
}
if ( color && Array.isArray( color ) && color.length === 3 ) {
return color;
}
+ if ( typeof color !== 'string' ) {
+ return undefined;
+ }
// Look for rgb(num,num,num)
// eslint-disable-next-line no-cond-assign
// Look for rgb(num,num,num)
// eslint-disable-next-line no-cond-assign
@@
-77,7
+80,7
@@
}
// Otherwise, we're most likely dealing with a named color
}
// Otherwise, we're most likely dealing with a named color
- return $.colorUtil.colors[
$.trim( color
).toLowerCase() ];
+ return $.colorUtil.colors[
color.trim(
).toLowerCase() ];
},
/**
},
/**