Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
619 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | import { SubscriptionLog } from './SubscriptionLog';
|
---|
| 2 | export class SubscriptionLoggable {
|
---|
| 3 | constructor() {
|
---|
| 4 | this.subscriptions = [];
|
---|
| 5 | }
|
---|
| 6 | logSubscribedFrame() {
|
---|
| 7 | this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));
|
---|
| 8 | return this.subscriptions.length - 1;
|
---|
| 9 | }
|
---|
| 10 | logUnsubscribedFrame(index) {
|
---|
| 11 | const subscriptionLogs = this.subscriptions;
|
---|
| 12 | const oldSubscriptionLog = subscriptionLogs[index];
|
---|
| 13 | subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());
|
---|
| 14 | }
|
---|
| 15 | }
|
---|
| 16 | //# sourceMappingURL=SubscriptionLoggable.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.