projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'release-1.0.1'
[dygraphs.git]
/
rgbcolor
/
rgbcolor.js
diff --git
a/rgbcolor/rgbcolor.js
b/rgbcolor/rgbcolor.js
index
bcdf94c
..
5a88244
100644
(file)
--- a/
rgbcolor/rgbcolor.js
+++ b/
rgbcolor/rgbcolor.js
@@
-9,21
+9,12
@@
* http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor
* so renamed to "RGBColorParser"
*
* http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-RGBColor
* so renamed to "RGBColorParser"
*
- * Modifications by konigsberg:
- * Make Closure-compatible.
- *
* @author Stoyan Stefanov <sstoo@gmail.com>
* @link http://www.phpied.com/rgb-color-parser-in-javascript/
* @license Use it if you like it
*/
"use strict";
* @author Stoyan Stefanov <sstoo@gmail.com>
* @link http://www.phpied.com/rgb-color-parser-in-javascript/
* @license Use it if you like it
*/
"use strict";
-/**
- * Create a new instance.
- *
- * @param {string} color_string the string to be parsed.
- * @constructor
- */
function RGBColorParser(color_string)
{
this.ok = false;
function RGBColorParser(color_string)
{
this.ok = false;
@@
-197,9
+188,9
@@
function RGBColorParser(color_string)
example: ['rgb(123, 234, 45)', 'rgb(255,234,245)'],
process: function (bits){
return [
example: ['rgb(123, 234, 45)', 'rgb(255,234,245)'],
process: function (bits){
return [
- parseInt(bits[1]
, 10
),
- parseInt(bits[2]
, 10
),
- parseInt(bits[3]
, 10
)
+ parseInt(bits[1]),
+ parseInt(bits[2]),
+ parseInt(bits[3])
];
}
},
];
}
},