MCPcopy Index your code
hub / github.com/totaljs/framework / isViewPublic

Function isViewPublic

debug.js:234–249  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

232 }
233
234 function isViewPublic(filename) {
235
236 if (!isBUNDLE && !isRELOAD)
237 return false;
238
239 var fn = filename.substring(directory.length);
240 var index = fn.indexOf('/', 1);
241 var dir = fn.substring(0, index + 1);
242
243 if (dir === CONF.directory_themes) {
244 index = fn.indexOf('/', index + 1);
245 dir = fn.substring(index, fn.indexOf('/', index + 1) + 1);
246 }
247
248 return CONF.directory_views === dir || CONF.directory_public === dir ? fn : '';
249 }
250
251 function makestamp() {
252 return '--- # --- [ ' + new Date().format('yyyy-MM-dd HH:mm:ss') + ' ] ';

Callers 1

refreshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected