lib/sugarcube/notifications.rb in sugarcube-0.20.19 vs lib/sugarcube/notifications.rb in sugarcube-0.20.20
- old
+ new
@@ -1,8 +1,8 @@
class NSNotification
def [](key)
- userInfo[key]
+ userInfo && userInfo[key]
end
end
- old
+ new