mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fixing lint errors
This commit is contained in:
parent
ed32ddc747
commit
63449b2694
@ -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_];
|
||||||
};
|
};
|
||||||
|
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user