fix cache typo. remove wrapDepth, it will be replaces with a different method

This commit is contained in:
Dan Mills 2009-01-02 13:36:28 -08:00
parent 4874eb740f
commit 0f96797713

View File

@ -81,7 +81,7 @@ Store.prototype = {
},
get cache() {
let cache = new RecordCache();
let cache = new Cache();
this.__defineGetter__("cache", function() cache);
return cache;
},
@ -113,18 +113,6 @@ Store.prototype = {
throw "override createRecord in a subclass";
},
wrapDepth: function BStore_wrapDepth(guid, items) {
if (typeof(items) == "undefined")
items = {};
for (let childguid in this._itemCache) {
if (this._itemCache[childguid].parentid == guid) {
items[childguid] = this._itemCache[childguid].depth;
this.wrapDepth(childguid, items);
}
}
return items;
},
changeItemID: function Store_changeItemID(oldID, newID) {
throw "override changeItemID in a subclass";
},