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() { ...@@ -105,7 +105,7 @@ var Colorizer = function Colorizer() {
105 codes.push(background[style.bg]); 105 codes.push(background[style.bg]);
106 } 106 }
107 for (var option in options) { 107 for (var option in options) {
108 if (style[option] === true) { 108 if (option in style && style[option] === true) {
109 codes.push(options[option]); 109 codes.push(options[option]);
110 } 110 }
111 } 111 }
......