Explorar o código

Update ui.js

used mrdoobs' suggestion
user1713952 %!s(int64=8) %!d(string=hai) anos
pai
achega
ecc35fa601
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  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;