Fixed bug where lack of 0 as prefix for numbers would throw an error

This commit is contained in:
ericrius1 2016-02-01 16:44:55 -08:00
parent 1b52d700a0
commit 1387f5f322

View file

@ -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) + '}}'
);
};
}