Merge pull request #7008 from ericrius1/editPropsDecimals

Fixed bug where lack of 0 as prefix for numbers would throw an error
This commit is contained in:
James B. Pollack 2016-02-01 17:35:44 -08:00
commit 43844dd0be

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