提交 ecc35fa6 编写于 作者: U user1713952 提交者: GitHub

Update ui.js

used mrdoobs' suggestion
上级 10ebc45e
......@@ -863,9 +863,8 @@ UI.Integer.prototype.setValue = function ( value ) {
};
UI.Integer.prototype.setStep = function ( step ) {
step = Math.max(step, Math.floor(step)); // Checks that step is an integer
this.step = step;
this.step = parseInt( step );
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册