When you specify min and/or max values for the spinner widget, you get an error in the console. However, the functionality isn't affected (because of error, normal processing is disrupted)
Error:
Code: Select all
this.cfg is undefined
Code: Select all
_spin: function(step) {
var newValue = this.value + step;
if(this.options.min != undefined && newValue < this.options.min) {
newValue = this.cfg.min;
}
if(this.options.max != undefined && newValue > this.options.max) {
newValue = this.cfg.max;
}
this.element.val(newValue).attr('aria-valuenow', newValue);
this.value = newValue;
this.element.trigger('change');
},
Rudy