;
}
},
remove: function(item) {
var key = this.getKey(item);
this.removeKey(key);
return key;
},
getKey: function(item) {
if (typeof item == "object") {
return this.omap.get(item);
} else {
return this.pmap[item];
}
},
getKeys: function() {
return Object.keys(this.store);
},
setItem: function(key, value) {
this.store[key] = value;
},
getItem: function(key) {
return this.store[key];
},
getItems: function() {
var items = [], store = this.store;
for (var key in store) {
items.push(store[key]);
}
return items;
