Fixed small bug with transparent color in palette

This commit is contained in:
juliandescottes 2012-09-06 23:12:35 +02:00
parent 0a2e2217c9
commit 9f36462d96

View File

@ -36,7 +36,7 @@ pskl.Palette = (function() {
* @private
*/
var addColorToPalette_ = function (color) {
if (paletteColors.indexOf(color) == -1) {
if (paletteColors.indexOf(color) == -1 && color != Constants.TRANSPARENT_COLOR) {
var colorEl = document.createElement("li");
colorEl.className = "palette-color";
colorEl.setAttribute("data-color", color);