(dataSources, dataSource)
| 198 | }; |
| 199 | |
| 200 | function getIndex(dataSources, dataSource) { |
| 201 | //>>includeStart('debug', pragmas.debug); |
| 202 | if (!defined(dataSource)) { |
| 203 | throw new DeveloperError("dataSource is required."); |
| 204 | } |
| 205 | //>>includeEnd('debug'); |
| 206 | |
| 207 | const index = dataSources.indexOf(dataSource); |
| 208 | |
| 209 | //>>includeStart('debug', pragmas.debug); |
| 210 | if (index === -1) { |
| 211 | throw new DeveloperError("dataSource is not in this collection."); |
| 212 | } |
| 213 | //>>includeEnd('debug'); |
| 214 | |
| 215 | return index; |
| 216 | } |
| 217 | |
| 218 | function swapDataSources(collection, i, j) { |
| 219 | const arr = collection._dataSources; |
no test coverage detected
searching dependent graphs…