fix(notifs): Hopefully prevent gc of NodeObjC objects

This commit is contained in:
Ben Gotow 2015-11-04 15:53:50 -08:00
parent 417a9a0f10
commit 52ea696810

View file

@ -23,6 +23,10 @@ class NativeNotificationManagerMacOSX
@_delegate = Delegate('alloc')('init')
@_center('setDelegate', @_delegate)
# Ensure that these objects are never, ever garbage collected
global.__nativeNotificationManagerMacOSXDelegate = Delegate
global.__nativeNotificationManagerMacOSX = @
ipc.on('fire-native-notification', @onFireNotification)
shouldPresentNotification: (self, _cmd, center, notif) =>