Improve perf. by not showing/hiding waiting

This commit is contained in:
Andrew Miner
2015-11-10 21:04:20 -08:00
parent 81f1d5efc5
commit d12a318dfa
2 changed files with 5 additions and 6 deletions
@@ -72,8 +72,9 @@ module.exports = class BaseController extends backbone.View
show: ($el)->
$el ?= @$el
$el.data 'target-visibility', 'visible'
_.delay (=> @_adjustTargetVisibility $el), Duration.snap
if $el.hasClass('hiding') or $el.hasClass('hidden')
$el.data 'target-visibility', 'visible'
_.delay (=> @_adjustTargetVisibility $el), Duration.snap
unrender: ->
@undelegateEvents()