mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user