Fixing lint errors

This commit is contained in:
grosbouddha 2015-09-14 21:53:29 +02:00
parent ed32ddc747
commit 63449b2694
2 changed files with 3 additions and 3 deletions

View file

@ -12,8 +12,8 @@
};
ns.SelectedColorsService.prototype.getColors = function () {
if (this.primaryColor_ == null || this.secondaryColor_ == null) {
throw "SelectedColorsService not properly intialized.";
if (this.primaryColor_ === null || this.secondaryColor_ === null) {
throw 'SelectedColorsService not properly intialized.';
}
return [this.primaryColor_, this.secondaryColor_];
};

View file

@ -20,7 +20,7 @@
var ditheringColor;
var currentColors = pskl.app.selectedColorsService.getColors();
// XOR on either row or col parity.
if (((col % 2 == 0) && !(row % 2 == 0)) || (!(col % 2 == 0) && (row % 2 == 0))) {
if ((col % 2 === 0 && row % 2 !== 0) || (col % 2 !== 0 && row % 2 === 0)) {
ditheringColor = currentColors[0];
} else {
ditheringColor = currentColors[1];