Fixed bug with removed _clonePixels method in Frame.js

This commit is contained in:
juliandescottes 2012-09-08 17:41:09 +02:00
parent 506b54e27b
commit 93e479fa11

View File

@ -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());
};
/**