From 2f766bbfa6321de5eb9a0a4ce0e7f5df23962348 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 20 Jul 2018 22:22:30 +0200 Subject: Enforce constancy --- pointless/viewer/presentation.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pointless/viewer/presentation.js') diff --git a/pointless/viewer/presentation.js b/pointless/viewer/presentation.js index 853d764..97a9244 100644 --- a/pointless/viewer/presentation.js +++ b/pointless/viewer/presentation.js @@ -15,10 +15,10 @@ class Presentation { } _setupStage() { - var self = this; - var onStageReadyCallback = function() { self._onStageReady(); }; - var onNextCallback = function() { self._onNext(); }; - var onPreviousCallback = function() { self._onPrevious(); }; + const self = this; + const onStageReadyCallback = function() { self._onStageReady(); }; + const onNextCallback = function() { self._onNext(); }; + const onPreviousCallback = function() { self._onPrevious(); }; return new Stage(onStageReadyCallback, onNextCallback, onPreviousCallback); } @@ -37,7 +37,7 @@ class Presentation { } _setPage(pageIndex) { - var self = this; + const self = this; this.currentPageIndex = pageIndex; this.pdf.getPage(this.currentPageIndex).then(function(page) { self.stage.setPage(page); -- cgit v1.2.3