mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-05 22:04:34 +03: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:
parent
b5f866b6fc
commit
3d4611ce4c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user