From d2ce6af486c774cad8a967fa786fe36ef5a9b65f Mon Sep 17 00:00:00 2001 From: Nicholas O'Leary Date: Fri, 6 Dec 2013 20:26:55 +0000 Subject: [PATCH] Switch node: infer intent to compare numbers Fixes #108 --- nodes/core/logic/10-switch.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nodes/core/logic/10-switch.js b/nodes/core/logic/10-switch.js index ac93e787f..2804b14e5 100644 --- a/nodes/core/logic/10-switch.js +++ b/nodes/core/logic/10-switch.js @@ -41,6 +41,14 @@ function SwitchNode(n) { var propertyParts = n.property.split("."), node = this; + for (var i=0; i