Sfoglia il codice sorgente

Merge pull request #10634 from user1713952/patch-1

Fixed: Integer.setStep was misspelled as Number.setStep
Mr.doob 8 anni fa
parent
commit
f60b9873f7
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      editor/js/libs/ui.js

+ 4 - 4
editor/js/libs/ui.js

@@ -862,10 +862,10 @@ UI.Integer.prototype.setValue = function ( value ) {
 
 };
 
-UI.Number.prototype.setStep = function ( step ) {
-
-	this.step = step;
-
+UI.Integer.prototype.setStep = function ( step ) {
+	
+	this.step = parseInt( step ); 
+	
 	return this;
 
 };