MCPcopy Create free account
hub / github.com/Yaffle/EventSource / clampDuration

Function clampDuration

tests/eventsource.js:696–698  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

694 return clampDuration(n);
695 };
696 var clampDuration = function (n) {
697 return Math.min(Math.max(n, MINIMUM_DURATION), MAXIMUM_DURATION);
698 };
699
700 var fire = function (that, f, event) {
701 try {

Callers 3

parseDurationFunction · 0.70
startFunction · 0.70
onFinishFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected