From 1387f5f322e529735006285d537409f57859c214 Mon Sep 17 00:00:00 2001 From: ericrius1 Date: Mon, 1 Feb 2016 16:44:55 -0800 Subject: [PATCH] Fixed bug where lack of 0 as prefix for numbers would throw an error --- examples/html/entityProperties.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/html/entityProperties.html b/examples/html/entityProperties.html index e794583c53..71f2450da1 100644 --- a/examples/html/entityProperties.html +++ b/examples/html/entityProperties.html @@ -64,7 +64,7 @@ function createEmitNumberPropertyUpdateFunction(propertyName) { return function() { EventBridge.emitWebEvent( - '{ "type":"update", "properties":{"' + propertyName + '":' + this.value + '}}' + '{ "type":"update", "properties":{"' + propertyName + '":' + parseFloat(this.value).toFixed(2) + '}}' ); }; }