From 0a9c162f2660b9e775473ba5b945c81e8c9b63ad Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 5 Nov 2015 17:53:04 -0800 Subject: [PATCH] [Persistence] Fix method delegation ...used by PersistenceAggregator --- platform/persistence/aggregator/src/PersistenceAggregator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/persistence/aggregator/src/PersistenceAggregator.js b/platform/persistence/aggregator/src/PersistenceAggregator.js index 9531587201..f46ddfbe68 100644 --- a/platform/persistence/aggregator/src/PersistenceAggregator.js +++ b/platform/persistence/aggregator/src/PersistenceAggregator.js @@ -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]; }); };