[Persistence] Update bunde definition

...to reflect removal of 'additional persistence spaces'; parse
these out of identifiers instead.
This commit is contained in:
Victor Woeltjen
2015-11-05 17:13:19 -08:00
parent c8cfbf5281
commit dda2c89a58
2 changed files with 4 additions and 10 deletions

View File

@ -72,8 +72,7 @@
"persistenceService", "persistenceService",
"$q", "$q",
"now", "now",
"PERSISTENCE_SPACE", "PERSISTENCE_SPACE"
"ADDITIONAL_PERSISTENCE_SPACES"
] ]
}, },
{ {
@ -239,11 +238,6 @@
{ {
"key": "PERSISTENCE_SPACE", "key": "PERSISTENCE_SPACE",
"value": "mct" "value": "mct"
},
{
"key": "ADDITIONAL_PERSISTENCE_SPACES",
"value": [],
"description": "An array of additional persistence spaces to load models from."
} }
], ],
"licenses": [ "licenses": [

View File

@ -41,13 +41,13 @@ define(
* @param $q Angular's $q service, for working with promises * @param $q Angular's $q service, for working with promises
* @param {function} now a function which provides the current time * @param {function} now a function which provides the current time
* @param {string} space the name of the persistence space(s) * @param {string} space the name of the persistence space(s)
* from which models should be retrieved. * from which models should be retrieved by default
* @param {string} spaces additional persistence spaces to use
*/ */
function PersistedModelProvider(persistenceService, $q, now) { function PersistedModelProvider(persistenceService, $q, now, space) {
this.persistenceService = persistenceService; this.persistenceService = persistenceService;
this.$q = $q; this.$q = $q;
this.now = now; this.now = now;
this.defaultSpace = space;
} }
PersistedModelProvider.prototype.getModels = function (ids) { PersistedModelProvider.prototype.getModels = function (ids) {