Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
931 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var SubscriptionLog_1 = require("./SubscriptionLog");
|
---|
4 | var SubscriptionLoggable = (function () {
|
---|
5 | function SubscriptionLoggable() {
|
---|
6 | this.subscriptions = [];
|
---|
7 | }
|
---|
8 | SubscriptionLoggable.prototype.logSubscribedFrame = function () {
|
---|
9 | this.subscriptions.push(new SubscriptionLog_1.SubscriptionLog(this.scheduler.now()));
|
---|
10 | return this.subscriptions.length - 1;
|
---|
11 | };
|
---|
12 | SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) {
|
---|
13 | var subscriptionLogs = this.subscriptions;
|
---|
14 | var oldSubscriptionLog = subscriptionLogs[index];
|
---|
15 | subscriptionLogs[index] = new SubscriptionLog_1.SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());
|
---|
16 | };
|
---|
17 | return SubscriptionLoggable;
|
---|
18 | }());
|
---|
19 | exports.SubscriptionLoggable = SubscriptionLoggable;
|
---|
20 | //# sourceMappingURL=SubscriptionLoggable.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.