From 8d09f13bad57012b007641b9103dfb3f61c56fb9 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 30 Jul 2015 10:27:34 +0800 Subject: [PATCH] Fix running callback when global.global is deleted Close #2366. --- atom/common/api/lib/callbacks-registry.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/common/api/lib/callbacks-registry.coffee b/atom/common/api/lib/callbacks-registry.coffee index b549d17c7285..4999e19dc119 100644 --- a/atom/common/api/lib/callbacks-registry.coffee +++ b/atom/common/api/lib/callbacks-registry.coffee @@ -1,3 +1,5 @@ +global = global # the "global.global" might be deleted later + module.exports = class CallbacksRegistry constructor: ->