MCPcopy
hub / github.com/cyu/rack-cors / done

Function done

test/cors/mocha.js:4033–4040  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

4031
4032 // finished
4033 function done(err) {
4034 if (self.timedOut) return;
4035 if (finished) return multiple(err);
4036 self.clearTimeout();
4037 self.duration = new Date - start;
4038 finished = true;
4039 fn(err);
4040 }
4041
4042 // for .resetTimeout()
4043 this.callback = done;

Callers 3

mocha.jsFile · 0.85
nextFunction · 0.85
test.cors.jsFile · 0.85

Calls 1

multipleFunction · 0.85

Tested by

no test coverage detected