Fixed bug with removed _clonePixels method in Frame.js
This commit is contained in:
parent
506b54e27b
commit
93e479fa11
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue