I'm not even quite sure what the correct vocabulary is for this, but I have the following code:
$(this).mySpecialMethod({
propertyOne: "ValueOne",
propertyTwo: "ValueTwo"
});
I'd like to dynamically control passing in a special propertyThree: "ValueThree" to this depending on other properties on the page/control.
How do I declare an object, add new properties to it based on my requirements and then pass it to the above specified method?
mySpecialMethod().