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

Function onComplete

debug.js:209–228  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

207 }
208
209 function onComplete(f) {
210
211 Fs.readdir(directory, function(err, arr) {
212
213 var length = arr.length;
214 for (var i = 0; i < length; i++) {
215 var name = arr[i];
216 name !== FILENAME && REG_FILES.test(name) && f.push(name);
217 }
218
219 length = f.length;
220
221 for (var i = 0; i < length; i++) {
222 var name = f[i];
223 if (files[name] === undefined)
224 files[name] = isLoaded ? 0 : null;
225 }
226 refresh();
227 });
228 }
229
230 function livereload() {
231 isRELOAD && setTimeout2('livereload', () => WS && WS.send('reload'), 500);

Callers

nothing calls this directly

Calls 1

refreshFunction · 0.85

Tested by

no test coverage detected