Robin Herbots 12 years ago
parent
commit
a1382e2c8c

+ 1 - 1
build.properties

@@ -7,7 +7,7 @@ distdir = dist
 
 build.major = 2
 build.minor = 2
-build.revision = 22
+build.revision = 23
 
 target = jquery.inputmask.bundle.js
 target.min = jquery.inputmask.bundle.min.js

BIN
dist/jQuery.InputMask.2.2.22.nupkg


BIN
dist/jQuery.InputMask.2.2.23.nupkg


+ 11 - 5
dist/jquery.inputmask.bundle.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2013 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 2.2.22
+* Version: 2.2.23
 */
 
 (function ($) {
@@ -819,6 +819,12 @@
                     if (!isComplete(buffer)) {
                         $input.trigger("incomplete");
                         if (opts.clearIncomplete) {
+                            $.each(masksets, function (ndx, ms) {
+                                ms["buffer"] = ms["_buffer"].slice();
+                                ms["lastValidPosition"] = undefined;
+                                ms["p"] = isRTL ? getMaskLength() : 0;
+                            });
+                            activeMasksetIndex = 0;
                             if (opts.clearMaskOnLostFocus)
                                 input._valueSet('');
                             else {
@@ -1439,7 +1445,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.2.22
+Version: 2.2.23
 
 Optional extensions on the jquery.inputmask base
 */
@@ -1536,7 +1542,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2012 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.2.22
+Version: 2.2.23
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2029,7 +2035,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.2.22
+Version: 2.2.23
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2204,7 +2210,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.2.22
+Version: 2.2.23
 
 Regex extensions on the jquery.inputmask base
 Allows for using regular expressions as a mask

File diff suppressed because it is too large
+ 33 - 33
dist/jquery.inputmask.bundle.min.js


File diff suppressed because it is too large
+ 11 - 11
dist/min/jquery.inputmask.js


+ 1 - 1
jquery.inputmask.jquery.json

@@ -8,7 +8,7 @@
 		"inputmask",
 		"mask"
     ],
-    "version": "2.2.22",
+    "version": "2.2.23",
     "author": {
         "name": "Robin Herbots",
         "url": "http://github.com/RobinHerbots/jquery.inputmask"

+ 6 - 6
js/jquery.inputmask.js

@@ -819,12 +819,12 @@
                     if (!isComplete(buffer)) {
                         $input.trigger("incomplete");
                         if (opts.clearIncomplete) {
-                         	$.each(masksets, function (ndx, ms) {
-                    			ms["buffer"] = ms["_buffer"].slice();
-                    			ms["lastValidPosition"] = undefined;
-                    			ms["p"] = isRTL ? getMaskLength() : 0;
-                			});
-                			activeMasksetIndex = 0;
+                            $.each(masksets, function (ndx, ms) {
+                                ms["buffer"] = ms["_buffer"].slice();
+                                ms["lastValidPosition"] = undefined;
+                                ms["p"] = isRTL ? getMaskLength() : 0;
+                            });
+                            activeMasksetIndex = 0;
                             if (opts.clearMaskOnLostFocus)
                                 input._valueSet('');
                             else {