Refactoring localStorageService into a prototype based class

This commit is contained in:
Vince
2012-09-16 12:59:19 +02:00
parent b761750766
commit de3fa1ea01
3 changed files with 184 additions and 98 deletions

View File

@@ -72,7 +72,8 @@ $.namespace("pskl");
this.keyManager = new pskl.KeyManager();
pskl.NotificationService.init();
pskl.LocalStorageService.init(frameSheet);
this.localStorageService = new pskl.service.LocalStorageService(frameSheet);
this.localStorageService.init();
// TODO: Add comments
var framesheetId = this.getFramesheetIdFromUrl();
@@ -81,7 +82,7 @@ $.namespace("pskl");
this.loadFramesheetFromService(framesheetId);
} else {
this.finishInit();
pskl.LocalStorageService.displayRestoreNotification();
this.localStorageService.displayRestoreNotification();
}
var drawingLoop = new pskl.rendering.DrawingLoop();