[#94,backend/memory,transform][s]: support for doing transforms without depending on an id field.
* Use index into array instead * Not totally happy with this but still ...
This commit is contained in:
@@ -166,7 +166,7 @@ this.recline.Backend.Memory = this.recline.Backend.Memory || {};
|
|||||||
var toUpdate = costco.mapDocs(this.data, editFunc);
|
var toUpdate = costco.mapDocs(this.data, editFunc);
|
||||||
// TODO: very inefficient -- could probably just walk the documents and updates in tandem and update
|
// TODO: very inefficient -- could probably just walk the documents and updates in tandem and update
|
||||||
_.each(toUpdate.updates, function(record, idx) {
|
_.each(toUpdate.updates, function(record, idx) {
|
||||||
self.update(record);
|
self.data[idx] = record;
|
||||||
});
|
});
|
||||||
return this.save(toUpdate);
|
return this.save(toUpdate);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user