The absorbList function can be used to append items to an existing
cached list (and ditto for absorbTree), so we shouldn't start off by
returning the cached version.
Thanks to James Fournie for catching this.
Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
* flattens the tree for absorption.
*/
service.absorbTree = function(tree, class_, noOffline) {
- if (service[class_] && service[class_].loaded) return;
-
var list = [];
function squash(node) {
list.push(node);
/** caches the object list both as the list and an id => object map */
service.absorbList = function(list, class_, noOffline) {
- if (service[class_] && service[class_].loaded) return service[class_];
-
var blob;
var pkey = egIDL.classes[class_].pkey;