Fixed bug with parsing numbers for editjs

This commit is contained in:
ericrius1 2016-02-23 09:33:37 -08:00
parent 04bd32e008
commit 749f4478ab
2 changed files with 1 additions and 3 deletions

View file

@ -75,7 +75,7 @@
function createEmitNumberPropertyUpdateFunction(propertyName) { function createEmitNumberPropertyUpdateFunction(propertyName) {
return function() { return function() {
EventBridge.emitWebEvent( EventBridge.emitWebEvent(
'{ "type":"update", "properties":{"' + propertyName + '":' + Number(this.value.toFixed(4)) + '}}' '{ "type":"update", "properties":{"' + propertyName + '":' + parseFloat(this.value).toFixed(4) + '}}'
); );
}; };
} }

View file

@ -32,11 +32,9 @@ ParticleExplorerTool = function() {
that.destroyWebView = function() { that.destroyWebView = function() {
if (!that.webView) { if (!that.webView) {
print("EBL CAN'ZT CLOSE WEB VIEW- IT DOESNT EXISTS!")
return; return;
} }
print("EBL CLOSING WEB VIEW")
that.webView.close(); that.webView.close();
that.webView = null; that.webView = null;
that.activeParticleEntity = 0; that.activeParticleEntity = 0;