From 64d349a5b6b74767fbcd04b37a5a32b26ea893df Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 8 Jul 2017 21:49:27 +0930 Subject: [PATCH] Update dependencies --- extensions/pusher/js/forum/dist/extension.js | 22 +++++++++----------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/extensions/pusher/js/forum/dist/extension.js b/extensions/pusher/js/forum/dist/extension.js index 20a331579..f6f413892 100644 --- a/extensions/pusher/js/forum/dist/extension.js +++ b/extensions/pusher/js/forum/dist/extension.js @@ -133,21 +133,19 @@ System.register('flarum/pusher/main', ['flarum/extend', 'flarum/app', 'flarum/co var id = String(data.discussionId); if (_this3.discussion && _this3.discussion.id() === id && _this3.stream) { - (function () { - var oldCount = _this3.discussion.commentsCount(); + var oldCount = _this3.discussion.commentsCount(); - app.store.find('discussions', _this3.discussion.id()).then(function () { - _this3.stream.update(); + app.store.find('discussions', _this3.discussion.id()).then(function () { + _this3.stream.update(); - if (!document.hasFocus()) { - app.setTitleCount(Math.max(0, _this3.discussion.commentsCount() - oldCount)); + if (!document.hasFocus()) { + app.setTitleCount(Math.max(0, _this3.discussion.commentsCount() - oldCount)); - $(window).one('focus', function () { - return app.setTitleCount(0); - }); - } - }); - })(); + $(window).one('focus', function () { + return app.setTitleCount(0); + }); + } + }); } });