Remove jquery from app.js

This commit is contained in:
Julian Descottes 2018-04-08 16:57:34 +02:00
parent 45d2245346
commit f462cd3b70
4 changed files with 7 additions and 7 deletions

View File

@ -67,24 +67,24 @@
this.drawingController = new pskl.controller.DrawingController(
this.piskelController,
$('#drawing-canvas-container'));
document.querySelector('#drawing-canvas-container'));
this.drawingController.init();
this.previewController = new pskl.controller.preview.PreviewController(
this.piskelController,
$('#animated-preview-canvas-container'));
document.querySelector('#animated-preview-canvas-container'));
this.previewController.init();
this.minimapController = new pskl.controller.MinimapController(
this.piskelController,
this.previewController,
this.drawingController,
$('.minimap-container'));
document.querySelector('.minimap-container'));
this.minimapController.init();
this.framesListController = new pskl.controller.FramesListController(
this.piskelController,
$('#preview-list-wrapper').get(0));
document.querySelector('#preview-list-wrapper'));
this.framesListController.init();
this.layersListController = new pskl.controller.LayersListController(this.piskelController);

View File

@ -18,7 +18,7 @@
/**
* @private
*/
this.container = container.get(0);
this.container = container;
var cfg = {
'zoom': this.calculateZoom_(),

View File

@ -5,7 +5,7 @@
this.piskelController = piskelController;
this.previewController = previewController;
this.drawingController = drawingController;
this.container = container.get(0);
this.container = container;
this.isClicked = false;
this.isVisible = false;

View File

@ -7,7 +7,7 @@
ns.PreviewController = function (piskelController, container) {
this.piskelController = piskelController;
this.container = container.get(0);
this.container = container;
this.elapsedTime = 0;
this.currentIndex = 0;