@ringcentral/juno 2.3.1 → 2.3.3

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.
@@ -4,5 +4,4 @@ export declare class ThrottleScheduler implements Scheduler {
4
4
  private _timeoutID?;
5
5
  schedule(task: () => void): void;
6
6
  clear(): void;
7
- private _reset;
8
7
  }
@@ -8,17 +8,15 @@ var ThrottleScheduler = /** @class */ (function () {
8
8
  var _this = this;
9
9
  if (!this._timeoutID) {
10
10
  this._timeoutID = window.setTimeout(function () {
11
- _this._lastTask();
12
- _this._reset();
11
+ var _a;
12
+ _this._timeoutID = undefined;
13
+ (_a = _this._lastTask) === null || _a === void 0 ? void 0 : _a.call(_this);
13
14
  });
14
15
  }
15
16
  this._lastTask = task;
16
17
  };
17
18
  ThrottleScheduler.prototype.clear = function () {
18
19
  window.clearTimeout(this._timeoutID);
19
- this._reset();
20
- };
21
- ThrottleScheduler.prototype._reset = function () {
22
20
  this._lastTask = null;
23
21
  this._timeoutID = undefined;
24
22
  };
@@ -6,17 +6,15 @@ var ThrottleScheduler = /** @class */ (function () {
6
6
  var _this = this;
7
7
  if (!this._timeoutID) {
8
8
  this._timeoutID = window.setTimeout(function () {
9
- _this._lastTask();
10
- _this._reset();
9
+ var _a;
10
+ _this._timeoutID = undefined;
11
+ (_a = _this._lastTask) === null || _a === void 0 ? void 0 : _a.call(_this);
11
12
  });
12
13
  }
13
14
  this._lastTask = task;
14
15
  };
15
16
  ThrottleScheduler.prototype.clear = function () {
16
17
  window.clearTimeout(this._timeoutID);
17
- this._reset();
18
- };
19
- ThrottleScheduler.prototype._reset = function () {
20
18
  this._lastTask = null;
21
19
  this._timeoutID = undefined;
22
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringcentral/juno",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "author": "RingCentral",
5
5
  "license": "MIT",
6
6
  "bugs": {