Prevent didReappear from setting up shortcuts twice for RootViews

This commit is contained in:
Scott Erickson 2016-02-23 12:00:07 -08:00
parent 7749f9cc0a
commit e2feeb8330

View file

@ -91,8 +91,9 @@ module.exports = class CocoView extends Backbone.View
didReappear: ->
# the router brings back this view from the cache
@delegateEvents()
wasHidden = @hidden
@hidden = false
@listenToShortcuts()
@listenToShortcuts() if wasHidden
view.didReappear() for id, view of @subviews
# View Rendering