[gjs: 1/2] mainloop: Assign null to property instead of deleting



commit 6ab2704dd07553ce50cf12aa1991dd9b235aafc8
Author: Jason Hicks <jaszhix gmail com>
Date:   Tue Apr 2 00:12:10 2019 -0500

    mainloop: Assign null to property instead of deleting

 modules/mainloop.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/mainloop.js b/modules/mainloop.js
index 3971bfe9..892b61df 100644
--- a/modules/mainloop.js
+++ b/modules/mainloop.js
@@ -41,7 +41,7 @@ function quit(name) {
        throw new Error("No main loop with this id");
 
     let loop = _mainLoops[name];
-    delete _mainLoops[name];
+    _mainLoops[name] = null;
 
     if (!loop.is_running())
        throw new Error("Main loop was stopped already");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]