X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=rgbcolor%2Frgbcolor.js;h=5a882446e6ad3610cd36b75a02ff726afc5b208a;hb=abff9eae8bb3d8a69099525e80d42c4e626ca661;hp=67b730e59975ee3c08563c0c61c232e4b6d02b25;hpb=3856711fdbd07233a7c59c3d83d86cc7fc4f3435;p=dygraphs.git diff --git a/rgbcolor/rgbcolor.js b/rgbcolor/rgbcolor.js index 67b730e..5a88244 100644 --- a/rgbcolor/rgbcolor.js +++ b/rgbcolor/rgbcolor.js @@ -4,13 +4,18 @@ * NOTE: modified by danvk. I removed the "getHelpXML" function to reduce the * file size, added "use strict" and a few "var" declarations where needed. * + * Modifications by adilh: + * Original "RGBColor" function name collides with: + * http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor + * so renamed to "RGBColorParser" + * * @author Stoyan Stefanov * @link http://www.phpied.com/rgb-color-parser-in-javascript/ * @license Use it if you like it */ "use strict"; -function RGBColor(color_string) +function RGBColorParser(color_string) { this.ok = false;