Remove unneccessary type check

This commit is contained in:
Dávid Szabó 2016-09-23 13:30:21 +02:00 committed by Julian Descottes
parent 0ec8036670
commit 43f989919c

View File

@ -110,9 +110,7 @@
if (this.containsPixel(x, y)) {
var index = y * this.width + x;
var p = this.pixels[index];
if (typeof color === 'string') {
color = pskl.utils.colorToInt(color);
}
if (p !== color) {
this.pixels[index] = color || pskl.utils.colorToInt(Constants.TRANSPARENT_COLOR);