(conf)
| 5 | module.exports = defineAbcClientAndLoad; |
| 6 | |
| 7 | function 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 | |
| 21 | function defineAbcClientAndLoad(conf,run,load) { |
| 22 | ss.client.init(); |
no outgoing calls
no test coverage detected