summaryrefslogtreecommitdiff
path: root/src/view
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-03 11:52:49 +0200
committerAlon Levy <alon@pobox.com>2014-12-03 11:52:49 +0200
commit27eb2cc7a2d8c5e1fe92e86a5203b071b0e6dd00 (patch)
tree0c392af231745c67b0bc2666953ee16ac1244d4f /src/view
parentbf70b852a99b5156f8703269724335f8e5ad3e3e (diff)
Fix #157: temp nodes are always selected
Diffstat (limited to 'src/view')
-rw-r--r--src/view/selection.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/selection.js b/src/view/selection.js
index 57f2443d..42f05094 100644
--- a/src/view/selection.js
+++ b/src/view/selection.js
@@ -58,7 +58,8 @@ function connectedComponent(nodes) {
}
var node_selected = function(node) {
- return node.state == 'chosen' || node.state == 'enter' || node.state == 'exit' || node.state == 'selected';
+ return node.state == 'chosen' || node.state == 'enter' || node.state == 'exit' || node.state == 'selected'
+ || node.state == 'temp';
}
var selected_class = function(node) {