r2666 - spinner: fixed implementation of stepUp, stepDown, pageUp and pageDown methods.
Author: pazu2k@gmail.com
Date: Sun Jun 7 01:51:46 2009
New Revision: 2666
Modified:
branches/dev/spinner/ui/ui.spinner.js
Log:
spinner: fixed implementation of stepUp, stepDown, pageUp and pageDown
methods.
Modified: branches/dev/spinner/ui/ui.spinner.js
==============================================================================
--- branches/dev/spinner/ui/ui.spinner.js (original)
+++ branches/dev/spinner/ui/ui.spinner.js Sun Jun 7 01:51:46 2009
@@ -525,17 +525,17 @@
this._setValue(newVal);
return this;
},
- stepUp: function(newVal) {
- this._up(newVal || this.options.step, null);
+ stepUp: function(steps) {
+ this._up((steps || 1) * this.options.step, null);
},
- stepDown: function(newVal) {
- this._down(newVal || this.options.step, null);
+ stepDown: function(steps) {
+ this._down((steps || 1) * this.options.step, null);
},
- pageUp: function(newVal) {
- this.stepUp((newVal || 1) * this.options.page);
+ pageUp: function(pages) {
+ this._up((pages || 1) * this.options.page, null);
},
- pageDown: function(newVal) {
- this.stepDown((newVal || 1) * this.options.page);
+ pageDown: function(pages) {
+ this._down((pages || 1) * this.options.page, null);
}
});