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

Function updateLabelMap

code/songhop/www/lib/angular/angular.js:25735–25738  ·  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

25733 * value of 1 and will eventually be passed to selectCtrl.addOption()
25734 */
25735 function updateLabelMap(labelMap, label, added) {
25736 labelMap[label] = labelMap[label] || 0;
25737 labelMap[label] += (added ? 1 : -1);
25738 }
25739
25740 function render() {
25741 renderScheduled = false;

Callers 1

renderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected