Browse Source

jquery.inputmask 3.1.42

Robin Herbots 11 years ago
parent
commit
a6ac2b024c

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "jquery.inputmask",
-  "version": "3.1.41",
+  "version": "3.1.42",
   "main": [
     "./dist/inputmask/jquery.inputmask.js",
     "./dist/inputmask/jquery.inputmask.extensions.js",

+ 1 - 1
dist/inputmask/jquery.inputmask.date.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.1.41
+* Version: 3.1.42
 */
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "./jquery.inputmask" ], factory) : factory(jQuery);

+ 1 - 1
dist/inputmask/jquery.inputmask.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.1.41
+* Version: 3.1.42
 */
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "./jquery.inputmask" ], factory) : factory(jQuery);

+ 2 - 2
dist/inputmask/jquery.inputmask.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.1.41
+* Version: 3.1.42
 */
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory(jQuery);
@@ -865,7 +865,7 @@
             compositionCaretPos = caret(input));
         }
         function compositionUpdateEvent(e) {
-            var input = this, caretPos = compositionCaretPos;
+            var input = this, caretPos = compositionCaretPos || caret(input);
             getMaskSet().validPositions = $.extend(!0, {}, compositionValidPos);
             var newData = e.originalEvent.data;
             caret(input, caretPos.begin, caretPos.end);

+ 1 - 1
dist/inputmask/jquery.inputmask.numeric.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.1.41
+* Version: 3.1.42
 */
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "./jquery.inputmask" ], factory) : factory(jQuery);

+ 1 - 1
dist/inputmask/jquery.inputmask.phone.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.1.41
+* Version: 3.1.42
 */
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "./jquery.inputmask" ], factory) : factory(jQuery);

+ 1 - 1
dist/inputmask/jquery.inputmask.regex.extensions.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.1.41
+* Version: 3.1.42
 */
 !function(factory) {
     "function" == typeof define && define.amd ? define([ "jquery", "./jquery.inputmask" ], factory) : factory(jQuery);

+ 2 - 2
dist/jquery.inputmask.bundle.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.1.41
+* Version: 3.1.42
 */
 !function($) {
     function isInputEventSupported(eventName) {
@@ -863,7 +863,7 @@
             compositionCaretPos = caret(input));
         }
         function compositionUpdateEvent(e) {
-            var input = this, caretPos = compositionCaretPos;
+            var input = this, caretPos = compositionCaretPos || caret(input);
             getMaskSet().validPositions = $.extend(!0, {}, compositionValidPos);
             var newData = e.originalEvent.data;
             caret(input, caretPos.begin, caretPos.end);

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


+ 1 - 1
jquery.inputmask.jquery.json

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

+ 2 - 1
js/jquery.inputmask.js

@@ -1155,6 +1155,7 @@
                                                 incomposition = true;
                                                 break;
                                             case "compositionupdate":
+                                                //console.log("cu " + e.originalEvent.data);
                                                 break;
                                             case "compositionend":
                                                 incomposition = false;
@@ -1559,7 +1560,7 @@
                 }
             }
             function compositionUpdateEvent(e) {
-                var input = this, caretPos = compositionCaretPos;
+                var input = this, caretPos = compositionCaretPos || caret(input);
                 getMaskSet()["validPositions"] = $.extend(true, {}, compositionValidPos);
 
                 var newData = e.originalEvent.data;