Commit d4981e9b authored by Alfredo Sumaran's avatar Alfredo Sumaran

Re-use previous line

parent c3d3e34e
...@@ -78,11 +78,10 @@ class @UserTabs ...@@ -78,11 +78,10 @@ class @UserTabs
@activateTab(@action) @activateTab(@action)
bindEvents: -> bindEvents: ->
# Turn off existing event listeners # Toggle event listeners
@parentEl.off 'shown.bs.tab', '.nav-links a[data-toggle="tab"]' @parentEl
.off 'shown.bs.tab', '.nav-links a[data-toggle="tab"]'
# Set event listeners .on 'shown.bs.tab', '.nav-links a[data-toggle="tab"]', @tabShown
@parentEl.on 'shown.bs.tab', '.nav-links a[data-toggle="tab"]', @tabShown
tabShown: (event) => tabShown: (event) =>
$target = $(event.target) $target = $(event.target)
......
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