diff options
Diffstat (limited to 'src/data/thing.js')
-rw-r--r-- | src/data/thing.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/data/thing.js b/src/data/thing.js index 78ad3642..c51c5fe5 100644 --- a/src/data/thing.js +++ b/src/data/thing.js @@ -16,6 +16,8 @@ export default class Thing extends CacheableObject { static findSpecs = Symbol.for('Thing.findSpecs'); static findThisThingOnly = Symbol.for('Thing.findThisThingOnly'); + static reverseSpecs = Symbol.for('Thing.reverseSpecs'); + static yamlDocumentSpec = Symbol.for('Thing.yamlDocumentSpec'); static getYamlLoadingSpec = Symbol.for('Thing.getYamlLoadingSpec'); @@ -26,14 +28,13 @@ export default class Thing extends CacheableObject { // Symbol.for('Thing.isThingConstructor') in constructor static [Symbol.for('Thing.isThingConstructor')] = NaN; - static [CacheableObject.propertyDescriptors] = { + constructor() { + super(); + // To detect: // Object.hasOwn(object, Symbol.for('Thing.isThing')) - [Symbol.for('Thing.isThing')]: { - flags: {expose: true}, - expose: {compute: () => NaN}, - }, - }; + this[Symbol.for('Thing.isThing')] = NaN; + } static [Symbol.for('Thing.selectAll')] = _wikiData => []; |