Closed Andries-Smit closed 4 years ago
Hi Andries, Thanks for your contribution. Can you please explicate which problem you've solved with this new set of code? Because you've changed a large set of the original code. Thanks in advance! Regards Joël
There where 3 issues.
Clear interval on destroy; the interval continues after the page has been closed, keeping this reference is a memory leak. And the code keep on running, which can cause other errors along the way.
Always callback on update; in some cases, for example on an error or no context object the callback was not called, causing a white screen.
Always reset subscription; in case the context object is empty, we always need to remove the subscription, to the previous object. When the update is performed, with no context is provided. This is relevant for the data view listen to list view or data grid. When no item is selected, there is no context.
The biggest change though, was removing the deployment and .svn folders. The commits are nicely split per improvement, so you can verify them more easily.
Please let me know if you need more information, or test coverage.
Thank you for this great and handy widget,
We got a contribution, I hope you take this in:
alert
and use standard UI error.Cheers, Andries