unpoly-rails 3.7.0 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/unpoly/unpoly.es6.js +6 -3
- data/assets/unpoly/unpoly.es6.min.js +1 -1
- data/assets/unpoly/unpoly.js +6 -3
- data/assets/unpoly/unpoly.min.js +1 -1
- data/lib/unpoly/rails/version.rb +1 -1
- metadata +3 -3
data/assets/unpoly/unpoly.js
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
/***/ (() => {
|
6
6
|
|
7
7
|
window.up = {
|
8
|
-
version: '3.7.
|
8
|
+
version: '3.7.1'
|
9
9
|
};
|
10
10
|
|
11
11
|
|
@@ -3703,11 +3703,12 @@ up.FieldWatcher = class FieldWatcher {
|
|
3703
3703
|
this._scheduledValues = null;
|
3704
3704
|
}
|
3705
3705
|
_scheduleValues(values, fieldOptions) {
|
3706
|
-
clearTimeout(this._currentTimer);
|
3707
3706
|
this._scheduledValues = values;
|
3707
|
+
this._scheduledFieldOptions = fieldOptions;
|
3708
3708
|
let delay = fieldOptions.delay || 0;
|
3709
|
+
clearTimeout(this._currentTimer);
|
3709
3710
|
this._currentTimer = u.timer(delay, () => {
|
3710
|
-
this.
|
3711
|
+
this._currentTimer = null;
|
3711
3712
|
this._requestCallback();
|
3712
3713
|
});
|
3713
3714
|
}
|
@@ -3719,6 +3720,8 @@ up.FieldWatcher = class FieldWatcher {
|
|
3719
3720
|
return;
|
3720
3721
|
if (this._callbackRunning)
|
3721
3722
|
return;
|
3723
|
+
if (this._currentTimer)
|
3724
|
+
return;
|
3722
3725
|
if (!this._scope.isConnected)
|
3723
3726
|
return;
|
3724
3727
|
let fieldOptions = this._scheduledFieldOptions;
|