Commit d4981e9b authored by Alfredo Sumaran's avatar Alfredo Sumaran

Re-use previous line

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