MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / serviceFactory

Function serviceFactory

src/background/sync/base.js:220–227  ·  view source on GitHub ↗
(base)

Source from the content-addressed store, hash-verified

218}
219
220function serviceFactory(base) {
221 const Service = function constructor() {
222 this.initialize();
223 };
224 Service.prototype = base;
225 Service.extend = extendService;
226 return Service;
227}
228function extendService(options) {
229 return serviceFactory(Object.assign(Object.create(this.prototype), options));
230}

Callers 2

extendServiceFunction · 0.85
base.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected