var Slider = require('./../index');

Slider.prototype.getLabel = function(value) {
  var labels = this.getAttribute('labels');

  if(!labels || !labels[value - this.min]) return value;

  return labels[value - this.min];
};

var Slider = require('./../index');

Slider.prototype.getLabel = function(value) {
  var labels = this.getAttribute('labels');
  var min = this.getAttribute('min');

  if(!labels || !labels[value - min]) return value;

  return labels[value - min];
};

Refactor labels viewhelper to the new structure
Refactor labels viewhelper to the new structure
