(config)
| 1507 | var selectOptions = this.$element[0].querySelectorAll('select > *' + optionSelector); |
| 1508 | |
| 1509 | function addDivider (config) { |
| 1510 | var previousData = mainData[mainData.length - 1]; |
| 1511 | |
| 1512 | // ensure optgroup doesn't create back-to-back dividers |
| 1513 | if ( |
| 1514 | previousData && |
| 1515 | previousData.type === 'divider' && |
| 1516 | (previousData.optID || config.optID) |
| 1517 | ) { |
| 1518 | return; |
| 1519 | } |
| 1520 | |
| 1521 | config = config || {}; |
| 1522 | config.type = 'divider'; |
| 1523 | |
| 1524 | mainData.push(config); |
| 1525 | } |
| 1526 | |
| 1527 | function addOption (option, config) { |
| 1528 | config = config || {}; |
no outgoing calls
no test coverage detected