Improve perf. by not showing/hiding waiting
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user