Skip to content

Commit

Permalink
add missing src/master-route.mjs from template
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Jun 20, 2024
1 parent d2bfc93 commit 511cb29
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/master-route.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { SkeletonRoute } from "./routes.mjs";

/**
* Route holding a ordered collection of values.
*
* @property {any[]} value
*/
export class MasterRoute extends SkeletonRoute {
constructor(path, options) {
super(path, options);
this.value = [];
}

propertiesFor(value)
{
}

async enter(transition, untilRoute) {
await super.enter(transition, untilRoute);

const values = [];

for await (const value of await this.iteratorFor(transition)) {
values.push(value);
}

this.value = values;
}
}

0 comments on commit 511cb29

Please sign in to comment.