Update factory.js

Step param was not used.
This commit is contained in:
genrich 2014-06-27 15:19:25 +03:00
parent 586c0607b5
commit 7a708d7dfd

View File

@ -38,6 +38,9 @@ define([
if (common.isNumber(arguments[2]) && common.isNumber(arguments[3])) { if (common.isNumber(arguments[2]) && common.isNumber(arguments[3])) {
// Has min and max. // Has min and max.
if (common.isNumber(arguments[4])) // has step
return new NumberControllerSlider(object, property, arguments[2], arguments[3], arguments[4]);
else
return new NumberControllerSlider(object, property, arguments[2], arguments[3]); return new NumberControllerSlider(object, property, arguments[2], arguments[3]);
} else { } else {