Instead of Integer.setStep, Number.setStep was written. Changed this and added a check to make sure the step is an integer too.
@@ -862,10 +862,11 @@ UI.Integer.prototype.setValue = function ( value ) {
};
-UI.Number.prototype.setStep = function ( step ) {
-
- this.step = step;
+UI.Integer.prototype.setStep = function ( step ) {
+ step = Math.max(step, Math.floor(step)); // Checks that step is an integer
+ this.step = step;
+
return this;