mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Merge branch 'master' into gh-pages
This commit is contained in:
commit
e2960ecdfb
@ -2,7 +2,7 @@
|
|||||||
var ns = $.namespace("pskl.model");
|
var ns = $.namespace("pskl.model");
|
||||||
|
|
||||||
ns.Frame = function (pixels) {
|
ns.Frame = function (pixels) {
|
||||||
this.pixels = pixels;
|
this.pixels = this.clonePixels_(pixels);
|
||||||
this.previousStates = [this.getPixels()];
|
this.previousStates = [this.getPixels()];
|
||||||
this.stateIndex = 0;
|
this.stateIndex = 0;
|
||||||
};
|
};
|
||||||
@ -24,7 +24,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
ns.Frame.prototype.clone = function () {
|
ns.Frame.prototype.clone = function () {
|
||||||
return new ns.Frame(this._clonePixels());
|
return new ns.Frame(this.getPixels());
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user