浏览代码

minor visual enhancement

Robin Herbots 15 年之前
父节点
当前提交
6a7b6598e9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      jquery.inputmask.js

+ 2 - 2
jquery.inputmask.js

@@ -3,7 +3,7 @@ Input Mask plugin for jquery
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 Robin Herbots
 Copyright (c) 2010 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 0.1.4
+Version: 0.1.5
    
    
 This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com)
 This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com)
 */
 */
@@ -283,8 +283,8 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                 input.bind("focus", function() {
                 input.bind("focus", function() {
                     input.addClass('focus');
                     input.addClass('focus');
                     undoBuffer = _val.call(input);
                     undoBuffer = _val.call(input);
-                    var pos = checkVal(input, buffer, true);
                     setTimeout(function() {
                     setTimeout(function() {
+                        var pos = checkVal(input, buffer, true);
                         if (pos >= _buffer.length)
                         if (pos >= _buffer.length)
                             caret(input, 0, pos);
                             caret(input, 0, pos);
                         else
                         else