|
|
@@ -3,7 +3,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2015 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.1.62-79
|
|
|
+* Version: 3.1.62-81
|
|
|
*/
|
|
|
!function(factory) {
|
|
|
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory(jQuery);
|
|
|
@@ -611,10 +611,13 @@
|
|
|
return isMatch;
|
|
|
}
|
|
|
var inputValue = void 0 != nptvl ? nptvl.slice() : input._valueGet().split(""), charCodes = "", initialNdx = 0;
|
|
|
- resetMaskSet(), getMaskSet().p = seekNext(-1), writeOut && input._valueSet("");
|
|
|
- var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp(escapeRegex(staticInput), "g"));
|
|
|
- matches && matches.length > 0 && (inputValue.splice(0, matches.length * staticInput.length),
|
|
|
- initialNdx = seekNext(initialNdx)), $.each(inputValue, function(ndx, charCode) {
|
|
|
+ if (resetMaskSet(), getMaskSet().p = seekNext(-1), writeOut && input._valueSet(""),
|
|
|
+ !strict) {
|
|
|
+ var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp(escapeRegex(staticInput), "g"));
|
|
|
+ matches && matches.length > 0 && (inputValue.splice(0, matches.length * staticInput.length),
|
|
|
+ initialNdx = seekNext(initialNdx));
|
|
|
+ }
|
|
|
+ $.each(inputValue, function(ndx, charCode) {
|
|
|
var keypress = $.Event("keypress");
|
|
|
keypress.which = charCode.charCodeAt(0), charCodes += charCode;
|
|
|
var lvp = getLastValidPosition(void 0, !0), lvTest = getMaskSet().validPositions[lvp], nextTest = getTestTemplate(lvp + 1, lvTest ? lvTest.locator.slice() : void 0, lvp);
|
|
|
@@ -796,6 +799,7 @@
|
|
|
}
|
|
|
var valueGet, valueSet;
|
|
|
if (!npt._valueGet) {
|
|
|
+ var valueProperty;
|
|
|
Object.getOwnPropertyDescriptor && void 0 == npt.value ? (valueGet = function() {
|
|
|
return this.textContent;
|
|
|
}, valueSet = function(value) {
|
|
|
@@ -803,13 +807,14 @@
|
|
|
}, Object.defineProperty(npt, "value", {
|
|
|
get: getter,
|
|
|
set: setter
|
|
|
- })) : document.__lookupGetter__ && npt.__lookupGetter__("value") ? (valueGet = npt.__lookupGetter__("value"),
|
|
|
+ })) : ((valueProperty = Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(npt, "value")) && valueProperty.configurable,
|
|
|
+ document.__lookupGetter__ && npt.__lookupGetter__("value") ? (valueGet = npt.__lookupGetter__("value"),
|
|
|
valueSet = npt.__lookupSetter__("value"), npt.__defineGetter__("value", getter),
|
|
|
npt.__defineSetter__("value", setter)) : (valueGet = function() {
|
|
|
return npt.value;
|
|
|
}, valueSet = function(value) {
|
|
|
npt.value = value;
|
|
|
- }, PatchValhook(npt.type), InstallNativeValueSetFallback(npt)), npt._valueGet = function(overruleRTL) {
|
|
|
+ }, PatchValhook(npt.type), InstallNativeValueSetFallback(npt))), npt._valueGet = function(overruleRTL) {
|
|
|
return isRTL && overruleRTL !== !0 ? valueGet.call(this).split("").reverse().join("") : valueGet.call(this);
|
|
|
}, npt._valueSet = function(value) {
|
|
|
valueSet.call(this, isRTL ? value.split("").reverse().join("") : value);
|