mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 14:56:07 +00:00
Bug 733987 - API to remove records from Sync's test HTTP server; r=rnewman
This commit is contained in:
parent
71c8eb3018
commit
056a79a42d
@ -295,6 +295,16 @@ ServerCollection.prototype = {
|
||||
return this.insertWBO(new ServerWBO(id, payload, modified));
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes an object entirely from the collection.
|
||||
*
|
||||
* @param id
|
||||
* (string) ID to remove.
|
||||
*/
|
||||
remove: function remove(id) {
|
||||
delete this._wbos[id];
|
||||
},
|
||||
|
||||
_inResultSet: function(wbo, options) {
|
||||
return wbo.payload
|
||||
&& (!options.ids || (options.ids.indexOf(wbo.id) != -1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user