mirror of
https://github.com/nasa/openmct.git
synced 2025-03-28 14:48:42 +00:00
[Search] Removed unnecissary dependency
Removed an unnecissary parameter from the search aggregator ($q).
This commit is contained in:
parent
80e0bd875a
commit
15a9d2380c
@ -53,8 +53,7 @@
|
|||||||
{
|
{
|
||||||
"provides": "searchService",
|
"provides": "searchService",
|
||||||
"type": "aggregator",
|
"type": "aggregator",
|
||||||
"implementation": "SearchAggregator.js",
|
"implementation": "SearchAggregator.js"
|
||||||
"depends": [ "$q" ]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ define(
|
|||||||
* @param {SearchProvider[]} providers the search providers to be
|
* @param {SearchProvider[]} providers the search providers to be
|
||||||
* aggregated
|
* aggregated
|
||||||
*/
|
*/
|
||||||
function SearchAggregator($q, providers) {
|
function SearchAggregator(providers) {
|
||||||
|
|
||||||
function getPromisedResults(resultsPromises, promiseIndex, finalResults) {
|
function getPromisedResults(resultsPromises, promiseIndex, finalResults) {
|
||||||
if (promiseIndex >= resultsPromises.length) {
|
if (promiseIndex >= resultsPromises.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user