move view related methods to the bottom

pull/1/head
Iuri Matias 6 years ago committed by yann300
parent 92641f1290
commit 042282f13c
  1. 30
      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`<div>
${this.slider.render()}
${this.buttonNavigator.render()}
</div>`
}
StepManager.prototype.reset = function () { StepManager.prototype.reset = function () {
this.slider.setValue(0) this.slider.setValue(0)
this.currentStepIndex = 0 this.currentStepIndex = 0
@ -205,4 +190,19 @@ StepManager.prototype.changeState = function (step) {
this.event.trigger('stepChanged', [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`<div>
${this.slider.render()}
${this.buttonNavigator.render()}
</div>`
}
module.exports = StepManager module.exports = StepManager

Loading…
Cancel
Save