From 05fdc852828cccffecb4884e7b4e60034c17bbf6 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 22 Apr 2015 09:41:50 -0700 Subject: [PATCH] Mark getNotifications as public and return an array copy --- src/notification-manager.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/notification-manager.coffee b/src/notification-manager.coffee index b1f71fe68..f4ebd97db 100644 --- a/src/notification-manager.coffee +++ b/src/notification-manager.coffee @@ -78,7 +78,10 @@ class NotificationManager Section: Getting Notifications ### - getNotifications: -> @notifications + # Public: Get all the notifications. + # + # Returns an {Array} of {Notifications}s. + getNotifications: -> @notifications.slice() ### Section: Managing Notifications