From 3d4611ce4ca8597cd10c8700d22248cd25590e44 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 28 Mar 2016 14:52:40 +0200 Subject: [PATCH] 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. --- src/pane-axis-element.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pane-axis-element.coffee b/src/pane-axis-element.coffee index 363f895c6..ee8019bb1 100644 --- a/src/pane-axis-element.coffee +++ b/src/pane-axis-element.coffee @@ -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()