code cleanup

This commit is contained in:
James B. Pollack 2016-08-26 10:19:31 -07:00
parent ee190db5eb
commit 4c63ad1ac8

View file

@ -1369,10 +1369,10 @@ var PropertiesTool = function (opts) {
}); });
webView.webEventReceived.connect(function (data) { webView.webEventReceived.connect(function (data) {
try{ try {
data = JSON.parse(data); data = JSON.parse(data);
} }
catch(e){ catch(e) {
return; return;
} }
var i, properties, dY, diff, newPosition; var i, properties, dY, diff, newPosition;
@ -1424,8 +1424,8 @@ var PropertiesTool = function (opts) {
selectionManager._update(); selectionManager._update();
} else if(data.type === 'saveUserData'){ } else if(data.type === 'saveUserData'){
//the event bridge and json parsing handle our avatar id string differently. //the event bridge and json parsing handle our avatar id string differently.
var actualID = data.id.split('"')[1] var actualID = data.id.split('"')[1];
var success = Entities.editEntity(actualID, data.properties) Entities.editEntity(actualID, data.properties);
} else if (data.type === "showMarketplace") { } else if (data.type === "showMarketplace") {
showMarketplace(); showMarketplace();
} else if (data.type === "action") { } else if (data.type === "action") {