Remove conditional assignment

HTML nodes are guaranteed to be detached before being re-attached, so we
are always sure that `subscriptions` is null on attach and non-null on
detach.
This commit is contained in:
Antonio Scandurra 2016-03-28 14:52:40 +02:00
parent b5f866b6fc
commit 3d4611ce4c

View File

@ -3,7 +3,7 @@ PaneResizeHandleElement = require './pane-resize-handle-element'
class PaneAxisElement extends HTMLElement
attachedCallback: ->
@subscriptions ?= @subscribeToModel()
@subscriptions = @subscribeToModel()
@childAdded({child, index}) for child, index in @model.getChildren()
switch @model.getOrientation()