mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix : add backup service and make undo safer
This commit is contained in:
@@ -96,4 +96,10 @@
|
||||
ns.Layer.prototype.length = function () {
|
||||
return this.frames.length;
|
||||
};
|
||||
|
||||
ns.Layer.prototype.getHash = function () {
|
||||
return this.frames.map(function (frame) {
|
||||
return frame.getHash();
|
||||
}).join('-');
|
||||
};
|
||||
})();
|
||||
@@ -109,4 +109,10 @@
|
||||
var appEngineEditorHeader = $('.piskel-name').html(this.descriptor.name);
|
||||
};
|
||||
|
||||
ns.Piskel.prototype.getHash = function () {
|
||||
return this.layers.map(function (layer) {
|
||||
return layer.getHash();
|
||||
}).join('-');
|
||||
};
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user