diff --git a/packages/core/cyclist.mjs b/packages/core/cyclist.mjs index 59755a44..9b522f05 100644 --- a/packages/core/cyclist.mjs +++ b/packages/core/cyclist.mjs @@ -8,13 +8,10 @@ import createClock from './zyklus.mjs'; import { logger } from './logger.mjs'; export class Cyclist { - worker; - pattern; - started = false; - cps = 1; // TODO - getTime; - phase = 0; constructor({ interval, onTrigger, onToggle, onError, getTime, latency = 0.1 }) { + this.started = false; + this.cps = 1; // TODO + this.phase = 0; this.getTime = getTime; this.onToggle = onToggle; this.latency = latency; diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index 316b0e43..c9c7faff 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -23,7 +23,6 @@ export const setStringParser = (parser) => (stringParser = parser); /** @class Class representing a pattern. */ export class Pattern { - _Pattern = true; // this property is used to detect if a pattern that fails instanceof Pattern is an instance of another Pattern /** * Create a pattern. As an end user, you will most likely not create a Pattern directly. * @@ -31,6 +30,7 @@ export class Pattern { */ constructor(query) { this.query = query; + this._Pattern = true; // this property is used to detect if a pattern that fails instanceof Pattern is an instance of another Pattern } //////////////////////////////////////////////////////////////////////