Stringify color inputs properly

This commit is contained in:
tjvr 2016-04-24 01:03:25 +01:00
parent 8fbe742069
commit e51c5c334a

View file

@ -1718,7 +1718,7 @@ var scratchblocks = function () {
Input.prototype.stringify = function() {
if (this.isColor) {
assert(this.value[0] === '#');
return this.value;
return "[" + this.value + "]";
}
var text = ((this.value ? "" + this.value : "")
.replace(/ v$/, " \\v")