MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / constructor

Method constructor

lib/web/CodeMirror/src/util/misc.js:32–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31export class Delayed {
32 constructor() {
33 this.id = null
34 this.f = null
35 this.time = 0
36 this.handler = bind(this.onTimeout, this)
37 }
38 onTimeout(self) {
39 self.id = 0
40 if (self.time <= +new Date) {

Callers 1

Calls 1

bindFunction · 0.70

Tested by

no test coverage detected