1.  
  2. this.handleChangeTop = function(e) {
  3. var slider = e.getTarget();
  4. var thumb = slider._thumb;
  5. var bg = slider.referToBg;
  6. bg.setStyleProperty("display", "");
  7. bg.setHeight(thumb.getTop());
  8. _filterSlider.topOdometer.setText(slider.getValue());
  9. }
  10. this.handleChangeBottom = function(e) {
  11. var slider = e.getTarget();
  12. var thumb = slider._thumb;
  13. var bg = slider.referToBg;
  14. bg.setStyleProperty("display", "");
  15. var top = thumb.getTop() + thumb.getHeight();
  16. bg.setTop(top);
  17. bg.setHeight(e.getTarget().getHeight() - top);
  18. _filterSlider.bottomOdometer.setText(slider.getValue());
  19. }
  20. ...
  21. this.topSlider.addEventListener("change", this.handleChangeTop);
  22. this.bottomSlider.addEventListener("change", this.handleChangeBottom);
  23.  
  24.