jquery/jquery-ui — pull request #757 by zjs (2012-10-16 14:46:33+00:00)
Title: Mask: use setTimeout to work around Chrome caret positioning issue

This change introduces a setTimeout(..., 0) around the code which positions the caret so that when the caret is being moved to position 0 when focusing on an empty input (the "When focusing on an empty element, and the mask is displayed, caret position should be in the beginning instead of where the user happened to click." requirement from http://wiki.jqueryui.com/w/page/12137996/Mask), so that our positioning of the caret happens after the browser's positioning of the caret in Chrome.