I have a global JavaScript object with multiple properties and functions that I am creating it this way:
myObject = {};
I thought that I can ea
When you write myObject = { ... }, you're creating a brand-new object and setting myObject to point to it. The previous value of myObject is thrown away.
myObject = { ... }
myObject
Instead, you can use jQuery:
jQuery.extend(myObject, { newProperty: whatever });