Browse Source

Update ui.js

used mrdoobs' suggestion
user1713952 8 years ago
parent
commit
ecc35fa601
1 changed files with 2 additions and 3 deletions
  1. 2 3
      editor/js/libs/ui.js

+ 2 - 3
editor/js/libs/ui.js

@@ -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;