* 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)
| 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; |