mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
fix cache typo. remove wrapDepth, it will be replaces with a different method
This commit is contained in:
parent
4874eb740f
commit
0f96797713
@ -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";
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user