mirror of
https://github.com/nasa/openmct.git
synced 2025-06-06 09:21:43 +00:00
[API] Providers get with identifier
Providers fetch objects using a full identifier. This ensures a consistent interface. Related to https://github.com/nasa/openmct/issues/1279
This commit is contained in:
parent
81de6119fe
commit
d813029046
@ -150,10 +150,6 @@ define([
|
|||||||
throw new Error('Provider does not support [' + method + '].');
|
throw new Error('Provider does not support [' + method + '].');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (method === 'get') {
|
|
||||||
return provider.get(identifier.key);
|
|
||||||
}
|
|
||||||
|
|
||||||
return provider[method].apply(provider, arguments);
|
return provider[method].apply(provider, arguments);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user