mirror of
https://github.com/nasa/openmct.git
synced 2024-12-29 17:38:53 +00:00
[Persistence] Fix method delegation
...used by PersistenceAggregator
This commit is contained in:
parent
942fa46022
commit
0a9c162f26
@ -64,11 +64,11 @@ define(
|
||||
|
||||
Object.keys(METHOD_DEFAULTS).forEach(function (method) {
|
||||
PersistenceAggregator.prototype[method] = function (space) {
|
||||
var delegateArgs = arguments.slice(0);
|
||||
var delegateArgs = Array.prototype.slice.apply(arguments, []);
|
||||
return this.providerMapPromise.then(function (map) {
|
||||
var provider = map[space];
|
||||
return provider ?
|
||||
provider.apply(provider, delegateArgs) :
|
||||
provider[method].apply(provider, delegateArgs) :
|
||||
METHOD_DEFAULTS[method];
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user