3 Commits

2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "piskel",
"version": "0.12.0",
"version": "0.12.1",
"description": "Pixel art editor",
"author": "Julian Descottes <julian.descottes@gmail.com>",
"contributors": [

View File

@ -54,7 +54,9 @@
var colors = this.getSelectedPaletteColors_();
if (colors.length > 0) {
var html = colors.map(function (color, index) {
var html = colors.filter(function (color) {
return !!color;
}).map(function (color, index) {
return pskl.utils.Template.replace(this.paletteColorTemplate_, {
color : color,
index : index + 1,