Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
var newPropertyValue = { mySybproperty2 : 10 }; // here you assign a new object to the property elements.myCustomComponent.myObjectProperty = newPropertyValue; // here you update the reference that you want to use later in code with the 'watched' new value newPropertyValue = elements.myCustomComponent.myObjectProperty; (...then later on, maybe during another event handler execution...) // this modification will be detected because it's using the new 'watched' value you got from elements.myCustomComponent.myObjectProperty after it was assigned - and the change will be sent to the browser newPropertyValue.mySybproperty1 = 5; |
Code Block | ||||
---|---|---|---|---|
| ||||
var newPropertyValue = { mySybproperty2 : 10 };
// here you assign a new object to the property
elements.myCustomComponent.myObjectProperty = newPropertyValue;
(...then later on, maybe during another event handler execution...)
// this modification will be detected because it's using the property value directly not through 'newPropertyValue'
elements.myCustomComponent.myObjectProperty.mySybproperty1 = 5; |
Code Block | ||||
---|---|---|---|---|
| ||||
var newPropertyValue = {}; // here you assign a new object to the property elements.myCustomComponent.myObjectProperty = newPropertyValue; (...then later on, maybe during another event handler execution...) // this will modify the value in newPropertyValue but myCustomComponent.myObjectProperty will not be aware of that to send changes to client/browser newPropertyValue.mySybproperty = 5; |
...
Overview
Content Tools
Activity