Merge pull request #7166 from ericrius1/editFix

Fixed bug with parsing numbers for edit js
This commit is contained in:
Clément Brisset 2016-02-23 11:57:19 -08:00
commit f82e5e2cd6
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;