From b8ef57007716de2e021dccfa44ead7b470bc4c63 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Sat, 19 Apr 2014 20:04:43 +0200 Subject: [PATCH] Removed cached serializer in Frame.js --- src/js/model/Frame.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/js/model/Frame.js b/src/js/model/Frame.js index c928591d..8fb85ccf 100644 --- a/src/js/model/Frame.js +++ b/src/js/model/Frame.js @@ -60,7 +60,6 @@ */ ns.Frame.prototype.setPixels = function (pixels) { this.pixels = this.clonePixels_(pixels); - this.s = null; this.version++; }; @@ -82,8 +81,6 @@ }; ns.Frame.prototype.getHash = function () { - if (!this.s) this.s = JSON.stringify(this.pixels); - return this.s; return [this.id, this.version].join('-'); }; @@ -91,7 +88,6 @@ if (this.containsPixel(col, row)) { var p = this.pixels[col][row]; if (p !== color) { - this.s = null; this.pixels[col][row] = color; this.version++; }