From 042282f13ccf538c71570d6c79f00a7c5cb30399 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Fri, 7 Sep 2018 12:07:58 -0400 Subject: [PATCH] move view related methods to the bottom --- src/app/debugger/debuggerUI/StepManager.js | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/app/debugger/debuggerUI/StepManager.js b/src/app/debugger/debuggerUI/StepManager.js index 48c4daa70a..43f4b1f988 100644 --- a/src/app/debugger/debuggerUI/StepManager.js +++ b/src/app/debugger/debuggerUI/StepManager.js @@ -104,21 +104,6 @@ function StepManager (_parent, _traceManager) { }) } -StepManager.prototype.remove = function () { - // used to stop listenning on event. bad and should be "refactored" - this.slider.view = null - this.slider = null - this.buttonNavigator.view = null - this.buttonNavigator = null -} - -StepManager.prototype.render = function () { - return yo`
- ${this.slider.render()} - ${this.buttonNavigator.render()} -
` -} - StepManager.prototype.reset = function () { this.slider.setValue(0) this.currentStepIndex = 0 @@ -205,4 +190,19 @@ StepManager.prototype.changeState = function (step) { this.event.trigger('stepChanged', [step]) } +StepManager.prototype.remove = function () { + // used to stop listenning on event. bad and should be "refactored" + this.slider.view = null + this.slider = null + this.buttonNavigator.view = null + this.buttonNavigator = null +} + +StepManager.prototype.render = function () { + return yo`
+ ${this.slider.render()} + ${this.buttonNavigator.render()} +
` +} + module.exports = StepManager