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 () { ns.SelectedColorsService.prototype.getColors = function () {
if (this.primaryColor_ == null || this.secondaryColor_ == null) { if (this.primaryColor_ === null || this.secondaryColor_ === null) {
throw "SelectedColorsService not properly intialized."; throw 'SelectedColorsService not properly intialized.';
} }
return [this.primaryColor_, this.secondaryColor_]; return [this.primaryColor_, this.secondaryColor_];
}; };

View File

@ -20,7 +20,7 @@
var ditheringColor; var ditheringColor;
var currentColors = pskl.app.selectedColorsService.getColors(); var currentColors = pskl.app.selectedColorsService.getColors();
// XOR on either row or col parity. // 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]; ditheringColor = currentColors[0];
} else { } else {
ditheringColor = currentColors[1]; ditheringColor = currentColors[1];