reactronic 0.92.25008 → 0.92.25009

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.
@@ -9,4 +9,5 @@ export declare class Clock extends ObservableObject {
9
9
  constructor(interval?: number);
10
10
  pause(value?: boolean): void;
11
11
  private tick;
12
+ protected start(): void;
12
13
  }
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { ObservableObject } from "./core/Mvcc.js";
11
- import { atomic } from "./ReactiveSystem.js";
11
+ import { atomic, reactive } from "./ReactiveSystem.js";
12
12
  export class Clock extends ObservableObject {
13
13
  constructor(interval = 1000) {
14
14
  super();
@@ -19,7 +19,6 @@ export class Clock extends ObservableObject {
19
19
  this.interval = 0;
20
20
  this.paused = false;
21
21
  this.interval = interval;
22
- this.tick();
23
22
  }
24
23
  pause(value = true) {
25
24
  this.paused = value;
@@ -38,6 +37,9 @@ export class Clock extends ObservableObject {
38
37
  setTimeout(() => this.tick(), this.interval - calibration);
39
38
  }
40
39
  }
40
+ start() {
41
+ this.tick();
42
+ }
41
43
  }
42
44
  __decorate([
43
45
  atomic,
@@ -51,3 +53,9 @@ __decorate([
51
53
  __metadata("design:paramtypes", []),
52
54
  __metadata("design:returntype", void 0)
53
55
  ], Clock.prototype, "tick", null);
56
+ __decorate([
57
+ reactive,
58
+ __metadata("design:type", Function),
59
+ __metadata("design:paramtypes", []),
60
+ __metadata("design:returntype", void 0)
61
+ ], Clock.prototype, "start", null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.92.25008",
3
+ "version": "0.92.25009",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",