I have widgetA with data structure - d. widgetA initializes widgetB and passes data to widgetB, like
$('<div>').widgetB({d:d});
But, when data in widgetA changes, in widgetB they dont, thats because when passing variables as options, jquery widget factory clones them.
How to pass reference pf variable to widget?
In this example widgetB does not change value and both times prints A.