caphun/jquery.inlineedit — pull request #15 by robocoder (2012-10-05 17:24:55+00:00)
Title: AJAX race condition

reset the displayed value outside of the lambda function right away; this eliminates a race condition where an AJAX call (from the save or cancel callback) modifies the DOM before the timeout (200 ms)

in my test environment, the save callback fires an ajax request; if the response is a validation error, it triggers another ajax request to refresh the cell in the table; my test environment is fast enough that this all happens before the lambda function is called, so it later overwrites the content that was already refreshed