Spinner: fixed incremental:false issue on mousedown (thanks cloudream)

This commit is contained in:
Ca-Phun Ung 2008-10-07 10:33:32 +00:00
parent eb3e6499bf
commit 3357c51b18

View File

@ -234,7 +234,7 @@ $.widget('ui.spinner', {
}
this.timer = window.setInterval(function() {
self[d](e);
if (self.counter > 20) {
if (self.options.incremental && self.counter > 20) {
self._mousedown(20, d, e);
}
}, i);