]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix running callback when global.global is deleted
authorCheng Zhao <zcbenz@gmail.com>
Thu, 30 Jul 2015 02:27:34 +0000 (10:27 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 30 Jul 2015 02:28:24 +0000 (10:28 +0800)
Close #2366.

atom/common/api/lib/callbacks-registry.coffee

index b549d17c7285c9b7fa983aa07b40b7d66f45e337..4999e19dc119cc153f86155342927c8e8a2b3544 100644 (file)
@@ -1,3 +1,5 @@
+global = global  # the "global.global" might be deleted later
+
 module.exports =
 class CallbacksRegistry
   constructor: ->