Switching .indexOf for IE8 support
authorDarren <darren@darrenwhitlen.com>
Sat, 15 Mar 2014 13:58:15 +0000 (13:58 +0000)
committerDarren <darren@darrenwhitlen.com>
Sat, 15 Mar 2014 13:58:15 +0000 (13:58 +0000)
client/src/views/channel.js

index 45b585dfe0b9b51cfe2a6420837000a8378b12b8..db2122f7882886f76c4eb36841bb431d4018623e 100644 (file)
@@ -216,7 +216,7 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({
                 'action mode'
             ];
 
-            if (count_all_activity || exclude_message_types.indexOf(msg.type) === -1) {
+            if (count_all_activity || _.indexOf(exclude_message_types, msg.type) === -1) {
                 $act.text((parseInt($act.text(), 10) || 0) + 1);
             }