This is an old revision of the document!
Using Ajax technologies, web applications normally load data from servers. As an example, consider a website that shows the current time of a certain country using two Ajax requests. If the response second request arrives before than the response the first ajax request arrive, the showed time will be incorrect. Using a customized strategy, named discardLate, of ordering that discard the obsolete response, we can avoid aforementioned problem.
var discardLate= function(jp) { if(!this.isLate(jp)){ jp.proceed(); this.updateCr(jp); //notifies that join point was executed. } }
The implementation follows: Toggle between the code and example