From b43833d7afd44b15d75a230be6a63299c3b21317 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 Jan 2025 14:14:37 -0400 Subject: data: Track: stub demo Thing.reverseSpecs --- src/data/things/track.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/data/things') diff --git a/src/data/things/track.js b/src/data/things/track.js index 4662be89..5234c568 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -653,6 +653,22 @@ export class Track extends Thing { }, }; + static [Thing.reverseSpecs] = { + tracksWhichReference: { + bindTo: 'trackData', + + referencing: track => [track], + referenced: track => track.sampledTracks, + }, + + tracksWhichSample: { + bindTo: 'trackData', + + referencing: track => [track], + referenced: track => track.sampledTracks, + }, + }; + // Track YAML loading is handled in album.js. static [Thing.getYamlLoadingSpec] = null; -- cgit 1.3.0-6-gf8a5