Added id argument to definition of createRecord in base Store class -- all subclasses must override this and must take the id argument.

This commit is contained in:
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 2009-01-27 17:23:18 -08:00
parent 465c145c78
commit 1e0abb5985

View File

@ -109,7 +109,7 @@ Store.prototype = {
throw "override itemExists in a subclass";
},
createRecord: function Store_createRecord() {
createRecord: function Store_createRecord(id) {
throw "override createRecord in a subclass";
},
@ -186,7 +186,7 @@ Cache.prototype = {
this._tail.next = wrapper;
this._tail = wrapper;
}
this._items[wrapper.id] = wrapper;
this.count++;