MCPcopy Index your code
hub / github.com/angular-ui/ui-router / getLabels

Function getLabels

test/angular/1.3/angular.js:26020–26039  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26018 }
26019
26020 function getLabels() {
26021 var values = valuesFn(scope);
26022 var toDisplay;
26023 if (values && isArray(values)) {
26024 toDisplay = new Array(values.length);
26025 for (var i = 0, ii = values.length; i < ii; i++) {
26026 toDisplay[i] = callExpression(displayFn, i, values[i]);
26027 }
26028 return toDisplay;
26029 } else if (values) {
26030 // TODO: Add a test for this case
26031 toDisplay = {};
26032 for (var prop in values) {
26033 if (values.hasOwnProperty(prop)) {
26034 toDisplay[prop] = callExpression(displayFn, prop, values[prop]);
26035 }
26036 }
26037 }
26038 return toDisplay;
26039 }
26040
26041 function createIsSelectedFn(viewValue) {
26042 var selectedSet;

Callers

nothing calls this directly

Calls 2

isArrayFunction · 0.85
callExpressionFunction · 0.85

Tested by

no test coverage detected