Bug 682449 - Strict mode SyntaxError: redefining delete is deprecated. r=rnewman
authorPhilipp von Weitershausen <philipp@weitershausen.de>
Fri, 26 Aug 2011 16:39:04 -0700
changeset 76310 84c0f187733508d7c22869c7af4b58d94ba45826
parent 76309 9c24b2af4c0d9ce964685af6f4b7d2f2f14fc2ff
child 76311 c3d9c66fb073b2bf9f8c90675fb9f591345e4235
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersrnewman
bugs682449
milestone9.0a1
Bug 682449 - Strict mode SyntaxError: redefining delete is deprecated. r=rnewman
services/sync/modules/resource.js
--- a/services/sync/modules/resource.js
+++ b/services/sync/modules/resource.js
@@ -403,17 +403,17 @@ AsyncResource.prototype = {
   },
 
   post: function post(data, callback) {
     if (typeof data == "function")
       [data, callback] = [undefined, data];
     this._doRequest("POST", data, callback);
   },
 
-  delete: function delete(callback) {
+  delete: function delete_(callback) {
     this._doRequest("DELETE", undefined, callback);
   }
 };
 
 
 /*
  * Represent a remote network resource, identified by a URI, with a
  * synchronous API.