Fix : add backup service and make undo safer

This commit is contained in:
jdescottes
2014-06-27 02:08:00 +02:00
parent 23fd3c464c
commit bd7ebc5f7d
13 changed files with 196 additions and 43 deletions

View File

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

View File

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