瀏覽代碼

Merge pull request #10634 from user1713952/patch-1

Fixed: Integer.setStep was misspelled as Number.setStep
Mr.doob 8 年之前
父節點
當前提交
f60b9873f7
共有 1 個文件被更改,包括 4 次插入4 次删除
  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;
 	return this;
 
 
 };
 };