ensure that the value is a number

This commit is contained in:
Damien Churchill 2009-08-21 01:06:22 +00:00
parent 24db5bd72a
commit df72c38f22

View File

@ -412,7 +412,7 @@ Ext.extend(Ext.ux.form.Spinner.NumberStrategy, Ext.ux.form.Spinner.Strategy, {
if(!this.allowDecimals || this.decimalPrecision == -1 || nan || !value){
return nan ? '' : value;
}
return value.toFixed(this.decimalPrecision);
return Number(value).toFixed(this.decimalPrecision);
}
});