|
|
@@ -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: 2.4.19
|
|
|
+* Version: 2.4.20
|
|
|
*/
|
|
|
|
|
|
(function ($) {
|
|
|
@@ -276,8 +276,8 @@
|
|
|
//return is false or a json object => { pos: ??, c: ??} or true
|
|
|
return activeMaskset['tests'][testPos].fn != null ?
|
|
|
activeMaskset['tests'][testPos].fn.test(chrs, buffer, position, strict, opts)
|
|
|
- : (c == getBufferElement(activeMaskset['_buffer'], position, true) || c == opts.skipOptionalPartCharacter) ?
|
|
|
- { "refresh": true, c: getBufferElement(activeMaskset['_buffer'], position, true), pos: position }
|
|
|
+ : (c == getBufferElement(activeMaskset['_buffer'].slice(), position, true) || c == opts.skipOptionalPartCharacter) ?
|
|
|
+ { "refresh": true, c: getBufferElement(activeMaskset['_buffer'].slice(), position, true), pos: position }
|
|
|
: false;
|
|
|
}
|
|
|
|
|
|
@@ -995,7 +995,7 @@
|
|
|
}
|
|
|
|
|
|
//should we clear a possible selection??
|
|
|
- var isSlctn = isSelection(pos.begin, pos.end), redetermineLVP = false,
|
|
|
+ var isSlctn = isSelection(pos.begin, pos.end),
|
|
|
initialIndex = activeMasksetIndex;
|
|
|
if (isSlctn) {
|
|
|
activeMasksetIndex = initialIndex;
|
|
|
@@ -1056,7 +1056,7 @@
|
|
|
shiftR(p, getMaskLength(), c);
|
|
|
//shift the lvp if needed
|
|
|
var lvp = getActiveMaskSet()["lastValidPosition"], nlvp = seekNext(lvp);
|
|
|
- if (nlvp != getMaskLength() && lvp >= p && (getBufferElement(getActiveBuffer(), nlvp, true) != getPlaceHolder(nlvp))) {
|
|
|
+ if (nlvp != getMaskLength() && lvp >= p && (getBufferElement(getActiveBuffer().slice(), nlvp, true) != getPlaceHolder(nlvp))) {
|
|
|
getActiveMaskSet()["lastValidPosition"] = nlvp;
|
|
|
}
|
|
|
} else getActiveMaskSet()["writeOutBuffer"] = false;
|
|
|
@@ -1635,7 +1635,7 @@ Input Mask plugin extensions
|
|
|
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: 2.4.19
|
|
|
+Version: 2.4.20
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
|
@@ -1757,7 +1757,7 @@ Input Mask plugin extensions
|
|
|
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: 2.4.19
|
|
|
+Version: 2.4.20
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
|
@@ -2245,7 +2245,7 @@ Input Mask plugin extensions
|
|
|
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: 2.4.19
|
|
|
+Version: 2.4.20
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
|
@@ -2422,7 +2422,7 @@ Input Mask plugin extensions
|
|
|
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: 2.4.19
|
|
|
+Version: 2.4.20
|
|
|
|
|
|
Regex extensions on the jquery.inputmask base
|
|
|
Allows for using regular expressions as a mask
|
|
|
@@ -2592,7 +2592,7 @@ Input Mask plugin extensions
|
|
|
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: 2.4.19
|
|
|
+Version: 2.4.20
|
|
|
|
|
|
Phone extension.
|
|
|
When using this extension make sure you specify the correct url to get the masks
|