ソースを参照

fix keyvalidation

Robin Herbots 12 年 前
コミット
3eb8595078

+ 1 - 1
build.properties

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

+ 1 - 1
component.json

@@ -1,6 +1,6 @@
 {
     "name": "jquery.inputmask",
-    "version": "2.2.41",
+    "version": "2.2.42",
     "main": "./js/jquery.inputmask.js",
     "dependencies": {
         "jquery": ">=1.5"

+ 9 - 7
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.41
+* Version: 2.2.42
 */
 
 (function ($) {
@@ -1365,7 +1365,8 @@
                                             }
                                         });
                                         if (result != undefined) {
-                                            setTimeout(function () { opts.onKeyValidation.call(this, result["result"], opts); }, 0);
+                                        	var self = this;
+                                            setTimeout(function () { opts.onKeyValidation.call(self, result["result"], opts); }, 0);
                                             if (getActiveMaskSet()["writeOutBuffer"] && result["result"] !== false) {
                                                 var buffer = getActiveBuffer();
                                                 writeBuffer(input, buffer, checkval ? undefined : (opts.numericInput ? seekNext(getActiveMaskSet()["p"]) : getActiveMaskSet()["p"]));
@@ -1418,7 +1419,8 @@
                                             }
                                         });
                                         if (result != undefined) {
-                                            setTimeout(function () { opts.onKeyValidation.call(this, result["result"], opts); }, 0);
+                                        	var self = this;
+                                            setTimeout(function () { opts.onKeyValidation.call(self, result["result"], opts); }, 0);
                                             if (getActiveMaskSet()["writeOutBuffer"] && result["result"] !== false) {
                                                 var p = getActiveMaskSet()["p"], buffer = getActiveBuffer();
                                                 writeBuffer(input, buffer, checkval ? undefined : p);
@@ -1466,7 +1468,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.41
+Version: 2.2.42
 
 Optional extensions on the jquery.inputmask base
 */
@@ -1567,7 +1569,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.41
+Version: 2.2.42
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2060,7 +2062,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.41
+Version: 2.2.42
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2222,7 +2224,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.41
+Version: 2.2.42
 
 Regex extensions on the jquery.inputmask base
 Allows for using regular expressions as a mask

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


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


+ 1 - 1
jquery.inputmask.jquery.json

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

+ 4 - 2
js/jquery.inputmask.js

@@ -1365,7 +1365,8 @@
                                             }
                                         });
                                         if (result != undefined) {
-                                            setTimeout(function () { opts.onKeyValidation.call(this, result["result"], opts); }, 0);
+                                        	var self = this;
+                                            setTimeout(function () { opts.onKeyValidation.call(self, result["result"], opts); }, 0);
                                             if (getActiveMaskSet()["writeOutBuffer"] && result["result"] !== false) {
                                                 var buffer = getActiveBuffer();
                                                 writeBuffer(input, buffer, checkval ? undefined : (opts.numericInput ? seekNext(getActiveMaskSet()["p"]) : getActiveMaskSet()["p"]));
@@ -1418,7 +1419,8 @@
                                             }
                                         });
                                         if (result != undefined) {
-                                            setTimeout(function () { opts.onKeyValidation.call(this, result["result"], opts); }, 0);
+                                        	var self = this;
+                                            setTimeout(function () { opts.onKeyValidation.call(self, result["result"], opts); }, 0);
                                             if (getActiveMaskSet()["writeOutBuffer"] && result["result"] !== false) {
                                                 var p = getActiveMaskSet()["p"], buffer = getActiveBuffer();
                                                 writeBuffer(input, buffer, checkval ? undefined : p);