mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
remove unused previewController member in ImportService
This commit is contained in:
parent
25ede9ffff
commit
b21fc0490d
@ -125,7 +125,7 @@
|
|||||||
this.storageService = new pskl.service.storage.StorageService(this.piskelController);
|
this.storageService = new pskl.service.storage.StorageService(this.piskelController);
|
||||||
this.storageService.init();
|
this.storageService.init();
|
||||||
|
|
||||||
this.importService = new pskl.service.ImportService(this.piskelController, this.previewController);
|
this.importService = new pskl.service.ImportService(this.piskelController);
|
||||||
|
|
||||||
this.imageUploadService = new pskl.service.ImageUploadService();
|
this.imageUploadService = new pskl.service.ImageUploadService();
|
||||||
this.imageUploadService.init();
|
this.imageUploadService.init();
|
||||||
|
@ -4,13 +4,11 @@
|
|||||||
/**
|
/**
|
||||||
* Image an animation import service supporting the import dialog.
|
* Image an animation import service supporting the import dialog.
|
||||||
* @param {!PiskelController} piskelController
|
* @param {!PiskelController} piskelController
|
||||||
* @param {!PreviewController} previewController
|
|
||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
ns.ImportService =
|
ns.ImportService =
|
||||||
function (piskelController, previewController) {
|
function (piskelController) {
|
||||||
this.piskelController_ = piskelController;
|
this.piskelController_ = piskelController;
|
||||||
this.previewController_ = previewController;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -36,9 +36,8 @@
|
|||||||
var piskelString = this.getPiskel(name);
|
var piskelString = this.getPiskel(name);
|
||||||
var key = this.getKey_(name);
|
var key = this.getKey_(name);
|
||||||
|
|
||||||
pskl.utils.serialization.Deserializer.deserialize(JSON.parse(piskelString), function (piskel, extra) {
|
pskl.utils.serialization.Deserializer.deserialize(JSON.parse(piskelString), function (piskel) {
|
||||||
pskl.app.piskelController.setPiskel(piskel);
|
pskl.app.piskelController.setPiskel(piskel);
|
||||||
pskl.app.previewController.setFPS(extra.fps);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user