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

Function updateLabelMap

test/angular/1.3/angular.js:26095–26098  ·  view source on GitHub ↗

* A new labelMap is created with each render. * This function is called for each existing option with added=false, * and each new option with added=true. * - Labels that are passed to this method twice, * (once with added=true and once with added=false) will end u

(labelMap, label, added)

Source from the content-addressed store, hash-verified

26093 * value of 1 and will eventually be passed to selectCtrl.addOption()
26094 */
26095 function updateLabelMap(labelMap, label, added) {
26096 labelMap[label] = labelMap[label] || 0;
26097 labelMap[label] += (added ? 1 : -1);
26098 }
26099
26100 function render() {
26101 renderScheduled = false;

Callers 1

renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected