MCPcopy Create free account
hub / github.com/angular-ui/ui-router / parseMaxTime

Function parseMaxTime

test/angular/1.2/angular-animate.js:1287–1296  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

1285 }
1286
1287 function parseMaxTime(str) {
1288 var maxValue = 0;
1289 var values = angular.isString(str) ?
1290 str.split(/\s*,\s*/) :
1291 [];
1292 forEach(values, function(value) {
1293 maxValue = Math.max(parseFloat(value) || 0, maxValue);
1294 });
1295 return maxValue;
1296 }
1297
1298 function getCacheKey(element) {
1299 var parentElement = element.parent();

Callers 1

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected