The last commit fixes some stupid bug in multiselct.js (thanks @infograf768 for finding this) and converts keepalive.js to pure functions (as pure as they can be).
Why? setinterval() is a closure and thus in ES6 the lexical is lost (eg keepAliveUrl)...
That's the reaso that the acutal function that calls Joomla.request also assigns local variables for the URL:
The last commit fixes some stupid bug in multiselct.js (thanks @infograf768 for finding this) and converts keepalive.js to pure functions (as pure as they can be).
Why?
setinterval()
is a closure and thus in ES6 the lexical is lost (eg keepAliveUrl)...That's the reaso that the acutal function that calls
Joomla.request
also assigns local variables for the URL:@wilsonge