USGS-CIDA/glri-afinch — pull request #32 by tkunicki-usgs (2013-03-26 17:43:51+00:00)
Title: use event handler delay to guarantee ordering of data display window

The event handling of 'rowselect' results in a final call to focusRow(...) after calling all (non-delayed) handlers. This call forces the panel containing the table to be brought to the front, regardless of any window ordering actions performed in the (non-delayed) handlers. By adding a delay > 0 to the event handler the handler will be called 'off stack' which is sufficient enough guarantee ordering. So in this case the magnitude of the delay isn't important, it's that the presence of any delay > 0 changes the execution path for the handler callback. This relies on the ExtJS implementation artifact and is most likely not guaranteed by API contract.