a question on performance degradation -- multiple windows andobserver service
Wonder if any of you have seen this, and if so, know
of a solution.
Trying to do a very simple global notification to all
windows in case there is a state change in one of the
The simplest case is a toggle button which goes ON or
However, with 2 windows, noticing a pretty severe
performance degradation (and ultimately hanging) if
the toggle button is clicked 5-10 times from each
Thanks for your help!
var newSetting= "..."; // currently, "ON" or "OFF"
var obsService =
The observer looks at the value of the third
parameter, and sets its own window's global variable
There is also a shared-singleton-component that holds
newSetting; however, have commented it out to see if
the performance issue will go away, but it doesn't.