ソースを参照

fix firstmaskpos issue + fix isComplete

Robin Herbots 12 年 前
コミット
14e6d59050

+ 1 - 1
build.properties

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

+ 6 - 6
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.4
+* Version: 2.2.5
 */
 
 (function ($) {
@@ -159,7 +159,7 @@
                         masksets = this.data('inputmask')['masksets'];
                         activeMasksetIndex = this.data('inputmask')['activeMasksetIndex'];
                         opts = this.data('inputmask')['opts'];
-                        return isComplete(this[0].split(''));
+                        return isComplete(this[0]._valueGet().split(''));
                     default:
                         //check if the fn is an alias
                         if (!resolveAlias(fn, options)) {
@@ -1241,7 +1241,7 @@
                                     }
                                     if (refresh !== true) {
                                         maskL = getMaskLength(buffer); //update masklength to include possible groupSeparator offset
-                                        var firstUnmaskedPosition = firstMaskPos;
+                                        var firstMaskPos = seekNext(buffer, -1), firstUnmaskedPosition = firstMaskPos;
                                         if (opts.insertMode == true) {
                                             if (getActiveMaskSet()['greedy'] == true) {
                                                 var bfrClone = buffer.slice();
@@ -1335,7 +1335,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.4
+Version: 2.2.5
 
 Optional extensions on the jquery.inputmask base
 */
@@ -1432,7 +1432,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.4
+Version: 2.2.5
 
 Optional extensions on the jquery.inputmask base
 */
@@ -1925,7 +1925,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.4
+Version: 2.2.5
 
 Optional extensions on the jquery.inputmask base
 */

ファイルの差分が大きいため隠しています
+ 28 - 28
dist/jquery.inputmask.bundle.min.js


ファイルの差分が大きいため隠しています
+ 18 - 18
dist/min/jquery.inputmask.js


+ 1 - 1
jquery.inputmask.jquery.json

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

+ 2 - 2
js/jquery.inputmask.js

@@ -159,7 +159,7 @@
                         masksets = this.data('inputmask')['masksets'];
                         activeMasksetIndex = this.data('inputmask')['activeMasksetIndex'];
                         opts = this.data('inputmask')['opts'];
-                        return isComplete(this[0].split(''));
+                        return isComplete(this[0]._valueGet().split(''));
                     default:
                         //check if the fn is an alias
                         if (!resolveAlias(fn, options)) {
@@ -1241,7 +1241,7 @@
                                     }
                                     if (refresh !== true) {
                                         maskL = getMaskLength(buffer); //update masklength to include possible groupSeparator offset
-                                        var firstUnmaskedPosition = firstMaskPos;
+                                        var firstMaskPos = seekNext(buffer, -1), firstUnmaskedPosition = firstMaskPos;
                                         if (opts.insertMode == true) {
                                             if (getActiveMaskSet()['greedy'] == true) {
                                                 var bfrClone = buffer.slice();