IE8 support - indexOf
authorDarren <darren@darrenwhitlen.com>
Sat, 5 Apr 2014 18:43:18 +0000 (19:43 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 5 Apr 2014 18:43:18 +0000 (19:43 +0100)
client/src/views/tabs.js

index 527592e9139ba16f2ddcd492d4dcd6783e8a3d06..1508e10b3dfa654afbc1d3e3494b21589013f9a6 100644 (file)
@@ -110,7 +110,7 @@ _kiwi.view.Tabs = Backbone.View.extend({
     },
 
     panelActive: function (panel, previously_active_panel) {
-        var panel_index = this.panel_access.indexOf(panel.cid);
+        var panel_index = _.indexOf(this.panel_access, panel.cid);
 
         // Remove any existing tabs or part images
         _kiwi.app.view.$el.find('.panellist .part').remove();