MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / getLabels

Function getLabels

code/songhop/www/lib/angular/angular.js:25660–25679  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25658 }
25659
25660 function getLabels() {
25661 var values = valuesFn(scope);
25662 var toDisplay;
25663 if (values && isArray(values)) {
25664 toDisplay = new Array(values.length);
25665 for (var i = 0, ii = values.length; i < ii; i++) {
25666 toDisplay[i] = callExpression(displayFn, i, values[i]);
25667 }
25668 return toDisplay;
25669 } else if (values) {
25670 // TODO: Add a test for this case
25671 toDisplay = {};
25672 for (var prop in values) {
25673 if (values.hasOwnProperty(prop)) {
25674 toDisplay[prop] = callExpression(displayFn, prop, values[prop]);
25675 }
25676 }
25677 }
25678 return toDisplay;
25679 }
25680
25681 function createIsSelectedFn(viewValue) {
25682 var selectedSet;

Callers

nothing calls this directly

Calls 1

callExpressionFunction · 0.70

Tested by

no test coverage detected