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.drawingController = new pskl.controller.DrawingController(
this.piskelController, this.piskelController,
$('#drawing-canvas-container')); document.querySelector('#drawing-canvas-container'));
this.drawingController.init(); this.drawingController.init();
this.previewController = new pskl.controller.preview.PreviewController( this.previewController = new pskl.controller.preview.PreviewController(
this.piskelController, this.piskelController,
$('#animated-preview-canvas-container')); document.querySelector('#animated-preview-canvas-container'));
this.previewController.init(); this.previewController.init();
this.minimapController = new pskl.controller.MinimapController( this.minimapController = new pskl.controller.MinimapController(
this.piskelController, this.piskelController,
this.previewController, this.previewController,
this.drawingController, this.drawingController,
$('.minimap-container')); document.querySelector('.minimap-container'));
this.minimapController.init(); this.minimapController.init();
this.framesListController = new pskl.controller.FramesListController( this.framesListController = new pskl.controller.FramesListController(
this.piskelController, this.piskelController,
$('#preview-list-wrapper').get(0)); document.querySelector('#preview-list-wrapper'));
this.framesListController.init(); this.framesListController.init();
this.layersListController = new pskl.controller.LayersListController(this.piskelController); this.layersListController = new pskl.controller.LayersListController(this.piskelController);

View File

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

View File

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

View File

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