Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dropped getHex optimization attempt

  • Loading branch information...
commit 8217f41ede2e0c2f67658080c24a51b175f579ca 1 parent 76d649b
@infusion authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  jquery.xcolor.js
View
3  jquery.xcolor.js
@@ -628,9 +628,6 @@
var g2 = this["g"] & 0xf;
var b2 = this["b"] & 0xf;
- if (0 === ((r1 ^ r2) | (g1 ^ g2) | (b1 ^ b2))) {
- return '#' + chars.charAt(r1) + chars.charAt(g1) + chars.charAt(b1);
- }
return '#'
+ chars.charAt(r1) + chars.charAt(r2)
+ chars.charAt(g1) + chars.charAt(g2)
Please sign in to comment.
Something went wrong with that request. Please try again.