Resolved #201 - add scale() function.

This commit is contained in:
Alexander Zobnin
2016-06-19 20:09:59 +03:00
parent 022bc263a4
commit c3da65e237
4 changed files with 36 additions and 5 deletions

View File

@@ -102,7 +102,8 @@ angular
$input.attr('data-provide', 'typeahead');
var options = funcDef.params[paramIndex].options;
if (funcDef.params[paramIndex].type === 'int') {
if (funcDef.params[paramIndex].type === 'int' ||
funcDef.params[paramIndex].type === 'float') {
options = _.map(options, function(val) { return val.toString(); });
}