From ee88ed4b44a421fa07033df87abb07f2e114d2b6 Mon Sep 17 00:00:00 2001 From: Nick Tomlin Date: Tue, 2 Jun 2015 12:33:21 -0500 Subject: [PATCH] Change signature of notification service --- .../js/services/notificationServices.js | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/website/public/js/services/notificationServices.js b/website/public/js/services/notificationServices.js index f53894b65e..d08c077e6d 100644 --- a/website/public/js/services/notificationServices.js +++ b/website/public/js/services/notificationServices.js @@ -5,23 +5,6 @@ angular.module("habitrpg").factory("Notification", ['$filter', function($filter) { - var notificationService = { - coins: coins, - crit: crit, - drop: drop, - exp: exp, - error: error, - gp: gp, - hp: hp, - lvl: lvl, - markdown: markdown, - mp: mp, - streak: streak, - text: text - }; - - return notificationService; - /** Show "+ 5 {gold_coin} 3 {silver_coin}" */ @@ -135,4 +118,19 @@ angular.module("habitrpg").factory("Notification", icon: icon || false }).click(function() { notice.pnotify_remove() }); } + + return { + coins: coins, + crit: crit, + drop: drop, + exp: exp, + error: error, + gp: gp, + hp: hp, + lvl: lvl, + markdown: markdown, + mp: mp, + streak: streak, + text: text + }; }]);