Closed joelambert closed 13 years ago
The color outputted isn't a valid string when there is whitespace in the input string.
e.g.
from: { color: 'rgb(0, 0, 255); } to: { color: 'rgb(255, 0, 0); }
The output is either NaN or NaNrgb(255, 0, 0)
NaN
NaNrgb(255, 0, 0)
This is an issue as its how WebKit browsers format the colour param of an element. I suspect this should be an easy fix, just clean the string on initialisation?
string.replace(/\s/g, '');
Fixed in SHA: a79f2ea1b05af3694bc7a79f919bd740b5756b89
The color outputted isn't a valid string when there is whitespace in the input string.
e.g.
The output is either
NaN
orNaNrgb(255, 0, 0)
This is an issue as its how WebKit browsers format the colour param of an element. I suspect this should be an easy fix, just clean the string on initialisation?