From 93e479fa1161978abcde37298efb1aed236bd508 Mon Sep 17 00:00:00 2001 From: juliandescottes Date: Sat, 8 Sep 2012 17:41:09 +0200 Subject: [PATCH] Fixed bug with removed _clonePixels method in Frame.js --- js/model/Frame.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/model/Frame.js b/js/model/Frame.js index a94d1a5b..04790344 100644 --- a/js/model/Frame.js +++ b/js/model/Frame.js @@ -2,7 +2,7 @@ var ns = $.namespace("pskl.model"); ns.Frame = function (pixels) { - this.pixels = pixels; + this.pixels = this.clonePixels_(pixels); this.previousStates = [this.getPixels()]; this.stateIndex = 0; }; @@ -24,7 +24,7 @@ }; ns.Frame.prototype.clone = function () { - return new ns.Frame(this._clonePixels()); + return new ns.Frame(this.getPixels()); }; /**