Cleanup, comments

This commit is contained in:
James B. Pollack 2015-09-26 11:27:58 -07:00
parent 57aca0c418
commit d8e7cd89ad
2 changed files with 5 additions and 9 deletions

View file

@ -122,7 +122,7 @@ window.onload = function() {
});
controller.onFinishChange(function(value) {
console.log('should group?', controller.shouldGroup)
// console.log('should group?', controller.shouldGroup)
// Fires when a controller loses focus.
writeDataToInterface(this.property, value, this.shouldGroup)
});

View file

@ -131,19 +131,17 @@ SettingsWindow = function() {
print('INIT testParticles' + testParticles)
};
this.onWebEventReceived = function(data) {
print('DATA ' + data)
// print('DATA ' + data)
var _data = JSON.parse(data)
if (_data.type !== 'particleExplorer_update') {
return;
}
if (_data.shouldGroup === true) {
print('USE GROUP PROPERTIES')
// print('USE GROUP PROPERTIES')
editEntity(_data.groupProperties)
return;
} else {
print('USE A SINGLE PROPERTY')
// print('USE A SINGLE PROPERTY')
editEntity(_data.singleProperty)
}
@ -155,11 +153,9 @@ SettingsWindow = function() {
function editEntity(properties) {
// print('TEST PARTICLES??' + testParticles)
print('PROPS' + JSON.stringify(properties));
Entities.editEntity(testParticles, properties);
var currentProperties = Entities.getEntityProperties(testParticles)
print('CURRENT PROPS', JSON.stringify(currentProperties))
// print('CURRENT PROPS', JSON.stringify(currentProperties))
}