MCPcopy Index your code
hub / github.com/socketstream/socketstream / defineAbcClient

Function defineAbcClient

test/unit/client/abcClient.js:7–19  ·  view source on GitHub ↗
(conf)

Source from the content-addressed store, hash-verified

5module.exports = defineAbcClientAndLoad;
6
7function defineAbcClient(conf) {
8 var r = {
9 css: './abc/style.css',
10 code: './abc/index.js',
11 view: './abc/abc.html',
12 tmpl: './templates/abc/1.html'
13 };
14 for(var k in conf) {
15 if (conf[k] === undefined) { delete r[k]; }
16 else if (k !== 'custom') { r[k] = conf[k]; }
17 }
18 return conf.custom? ss.client.define('abc',conf.custom,r) : ss.client.define('abc',r);
19}
20
21function defineAbcClientAndLoad(conf,run,load) {
22 ss.client.init();

Callers 9

constants.test.jsFile · 0.85
pack.test.jsFile · 0.85
defineAbcClientAndLoadFunction · 0.85
formatters.test.jsFile · 0.85
angular.test.jsFile · 0.85
default.test.jsFile · 0.85
custom.test.jsFile · 0.85
index.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected