Commit 5e127143 5e1271436fe7db16893cd1730f0f410e239300e3 by Laurent Jouanneau

Refs #482: colorizer: fixes a warning

With Gecko, a warning appears when an option does not exists
in styles.
1 parent 6f677800
......@@ -105,7 +105,7 @@ var Colorizer = function Colorizer() {
codes.push(background[style.bg]);
}
for (var option in options) {
if (style[option] === true) {
if (option in style && style[option] === true) {
codes.push(options[option]);
}
}
......