Commit 85e672b1 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Turn off existing event listeners

parent 7ff635d9
...@@ -69,6 +69,10 @@ class @UserTabs ...@@ -69,6 +69,10 @@ class @UserTabs
@activateTab(action) @activateTab(action)
bindEvents: -> bindEvents: ->
# Turn off existing event listeners
$(document).off 'shown.bs.tab', '.nav-links a[data-toggle="tab"]'
# Set event listeners
$(document).on 'shown.bs.tab', '.nav-links a[data-toggle="tab"]', @tabShown $(document).on 'shown.bs.tab', '.nav-links a[data-toggle="tab"]', @tabShown
tabStateInit: -> tabStateInit: ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment