Browse Source

minor visual enhancement

Robin Herbots 15 years ago
parent
commit
6a7b6598e9
1 changed files with 2 additions and 2 deletions
  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
 Copyright (c) 2010 Robin Herbots
 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)
 */
@@ -283,8 +283,8 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                 input.bind("focus", function() {
                     input.addClass('focus');
                     undoBuffer = _val.call(input);
-                    var pos = checkVal(input, buffer, true);
                     setTimeout(function() {
+                        var pos = checkVal(input, buffer, true);
                         if (pos >= _buffer.length)
                             caret(input, 0, pos);
                         else