Renamed all methods called delete to remove

This is because Internet Explorer <= 8 has `delete` as a reserved keyword that you cannot name your methods
This commit is contained in:
John Martin
2012-10-02 14:10:25 +01:00
parent 5d991a4bd7
commit 1d931b9239
5 changed files with 9 additions and 9 deletions

View File

@@ -220,7 +220,7 @@ test("write", function() {
equal(data._version, 2);
// delete
var jqxhr = backend.delete(rec.id);
var jqxhr = backend.remove(rec.id);
jqxhr.done(function(data) {
ok(data.ok);
rec = null;

View File

@@ -135,7 +135,7 @@ test('update and delete', function () {
equal(data.data[0].x, newVal);
// Test Delete
data.delete(doc1);
data.remove(doc1);
equal(data.data.length, 5);
equal(data.data[0].x, memoryData[1].x);
});