Skip to content

Commit be8c1bb

Browse files
author
Igor Escobar
committed
generating jquery mask files v1.14.15
1 parent 68fcf26 commit be8c1bb

File tree

7 files changed

+26
-24
lines changed

7 files changed

+26
-24
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-mask-plugin",
3-
"version": "1.14.14",
3+
"version": "1.14.15",
44
"main": "dist/jquery.mask.js",
55
"ignore": [
66
"deploy.rb",

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jQuery-Mask-Plugin",
33
"description": "A jQuery Plugin to make masks on form fields and HTML elements.",
4-
"version": "1.14.14",
4+
"version": "1.14.15",
55
"keywords": ["javascript", "mask", "form"],
66
"scripts": [
77
"dist/jquery.mask.js"

dist/jquery.mask.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* jquery.mask.js
3-
* @version: v1.14.14
3+
* @version: v1.14.15
44
* @author: Igor Escobar
55
*
66
* Created by Igor Escobar on 2012-03-10. Please report any bug at github.com/igorescobar/jQuery-Mask-Plugin
@@ -254,7 +254,8 @@
254254
var keyCode = el.data('mask-keycode');
255255

256256
if ($.inArray(keyCode, jMask.byPassKeys) === -1) {
257-
var newVal = p.getMasked();
257+
var newVal = p.getMasked(),
258+
caretPos = p.getCaret();
258259

259260
// this is a compensation to devices/browsers that don't compensate
260261
// caret positioning the right way
@@ -263,6 +264,7 @@
263264
}, $.jMaskGlobals.keyStrokeCompensation);
264265

265266
p.val(newVal);
267+
p.setCaret(caretPos);
266268
return p.callbacks(e);
267269
}
268270
},

dist/jquery.mask.min.js

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package.describe({
22
"name": "igorescobar:jquery-mask-plugin",
3-
"version": "1.14.14",
3+
"version": "1.14.15",
44
"summary": "A jQuery Plugin to make masks on form fields and HTML elements.",
55
"git": "git@github.com:igorescobar/jQuery-Mask-Plugin.git",
66
"documentation": "README.md"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-mask-plugin",
3-
"version": "1.14.14",
3+
"version": "1.14.15",
44
"description": "A jQuery Plugin to make masks on form fields and html elements.",
55
"author": "Igor Escobar <blog@igorescobar.com>",
66
"homepage": "http://igorescobar.github.io/jQuery-Mask-Plugin/",

src/jquery.mask.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* jquery.mask.js
3-
* @version: v1.14.14
3+
* @version: v1.14.15
44
* @author: Igor Escobar
55
*
66
* Created by Igor Escobar on 2012-03-10. Please report any bug at github.com/igorescobar/jQuery-Mask-Plugin

0 commit comments

Comments
 (0)