remove experimental class properties

This commit is contained in:
Felix Roos 2023-01-12 12:32:27 +01:00
parent efa4bfef2f
commit 62af12f3b9
2 changed files with 4 additions and 7 deletions

View File

@ -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;

View File

@ -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
}
//////////////////////////////////////////////////////////////////////