summaryrefslogtreecommitdiff
path: root/common/modules/cache.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2014-02-23 12:36:13 -0800
committerKris Maglione <maglione.k@gmail.com>2014-02-23 12:36:13 -0800
commitd1fd687eb4fc5f4406f24cb29b72c180f7c0ad92 (patch)
tree93e14b0646a5b69935a43e58eb3eb61a99478a8a /common/modules/cache.jsm
parentc37656f731b6834f705e7faf614be2549c64c676 (diff)
downloadpentadactyl-d1fd687eb4fc5f4406f24cb29b72c180f7c0ad92.tar.gz
Avoid using delete operator.
Diffstat (limited to 'common/modules/cache.jsm')
-rw-r--r--common/modules/cache.jsm4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/modules/cache.jsm b/common/modules/cache.jsm
index cbf2a3f6..0f13ca1e 100644
--- a/common/modules/cache.jsm
+++ b/common/modules/cache.jsm
@@ -121,7 +121,7 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), {
closeReader: function closeReader() {
if (cache._cacheReader) {
this.cacheReader.close();
- delete cache._cacheReader;
+ cache._cacheReader = null;
}
},
@@ -130,7 +130,7 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), {
if (this._cacheWriter) {
this._cacheWriter.close();
- delete cache._cacheWriter;
+ cache._cacheWriter = null;
// ZipWriter bug.
if (this.cacheFile.fileSize <= 22)