From: Cheng Zhao Date: Thu, 30 Jul 2015 02:27:34 +0000 (+0800) Subject: Fix running callback when global.global is deleted X-Git-Tag: v0.30.2~4 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8d09f13bad57012b007641b9103dfb3f61c56fb9;p=electron.git Fix running callback when global.global is deleted Close #2366. --- diff --git a/atom/common/api/lib/callbacks-registry.coffee b/atom/common/api/lib/callbacks-registry.coffee index b549d17c..4999e19d 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: ->