MCPcopy Create free account
hub / github.com/thinkjs/thinkjs / constructor

Method constructor

test/case/application.js:93–96  ·  view source on GitHub ↗
(options,cb)

Source from the content-addressed store, hash-verified

91 const App = getApplication();
92 const watcher = class Watcher {
93 constructor(options,cb){
94 this.options = options;
95 this.cb = cb;
96 }
97 watch(){
98 console.log('start watch');
99 this.cb({});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected