From dbbd57ae28d4f47cb52ff45783e217cc4bb9e1cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Fri, 26 Aug 2016 01:49:39 +0200 Subject: [PATCH] Fix old deserializers to match new callback func --- src/js/utils/serialization/backward/Deserializer_v0.js | 2 +- src/js/utils/serialization/backward/Deserializer_v1.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/utils/serialization/backward/Deserializer_v0.js b/src/js/utils/serialization/backward/Deserializer_v0.js index d372dab6..99cef062 100644 --- a/src/js/utils/serialization/backward/Deserializer_v0.js +++ b/src/js/utils/serialization/backward/Deserializer_v0.js @@ -14,6 +14,6 @@ var descriptor = new pskl.model.piskel.Descriptor('Deserialized piskel', ''); var layer = pskl.model.Layer.fromFrames('Layer 1', frames); - this.callback_(pskl.model.Piskel.fromLayers([layer], descriptor)); + this.callback_(pskl.model.Piskel.fromLayers([layer], descriptor), { fps: Constants.DEFAULTS.FPS}); }; })(); diff --git a/src/js/utils/serialization/backward/Deserializer_v1.js b/src/js/utils/serialization/backward/Deserializer_v1.js index 7456a29e..9eb9c5cf 100644 --- a/src/js/utils/serialization/backward/Deserializer_v1.js +++ b/src/js/utils/serialization/backward/Deserializer_v1.js @@ -16,7 +16,7 @@ piskel.addLayer(layer); }.bind(this)); - this.callback_(piskel); + this.callback_(piskel, { fps: Constants.DEFAULTS.FPS}); }; ns.Deserializer_v1.prototype.deserializeLayer = function (layerString) {