Nette.ajax.js unique extension
Notice: This thread is very old.
- matopeto
- Member | 395
mstefan21 wrote:
Why default implementation of “unique” extension destroy all previous other AJAX requests. Instead of this solution we assume calling
xhr.abort()
instead ofthis.xhr.abort()
to killing new once.
this is by design, unique extension kills all other ajax calls (i think usecase is like ajax searching, when only last action is importing), only the new one will keep alive. If you want something else e.g. keeping only old call, you have to write your own extension.
Last edited by matopeto (2017-01-26 15:27)