MCPcopy Create free account
hub / github.com/totaljs/framework / appendModel

Function appendModel

internal.js:3128–3134  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3126}
3127
3128function appendModel(str) {
3129 var index = str.indexOf('(');
3130 if (index === -1)
3131 return str;
3132 var end = str.substring(index + 1);
3133 return str.substring(0, index) + '(model' + (end[0] === ')' ? end : ',' + end);
3134}
3135
3136function cleanURL(url, index) {
3137 var o = url.substring(0, index);

Callers 1

view_prepareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected