13 lines
223 B
JavaScript
13 lines
223 B
JavaScript
class AggregateTracker {
|
|
constructor(trackers) {
|
|
this._trackers = trackers;
|
|
}
|
|
|
|
poll() {
|
|
const media = []
|
|
for (let tracker of this._trackers)
|
|
media.push.apply(tracker.poll());
|
|
|
|
return media;
|
|
}
|
|
} |