Showing 7 of 7 total issues
Function Mask
has 252 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Mask = function (el, mask, options) {
var jMask = this, old_value, regexMask;
el = $(el);
mask = typeof mask === "function" ? mask(el.val(), undefined, el, options) : mask;
File jquery.mask.js
has 294 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* jquery.mask.js
* @version: v1.6.5
* @author: Igor Escobar
*
Function getMasked
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getMasked: function (skipMaskChars) {
var buf = [],
value = p.val(),
m = 0, maskLen = mask.length,
v = 0, valLen = value.length,
Function events
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
events: function() {
el.on('keydown.mask', function() {
old_value = p.val();
});
el.on('keyup.mask', p.behaviour);
Function init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jMask.init = function() {
options = options || {};
jMask.byPassKeys = [9, 16, 17, 18, 36, 37, 38, 39, 40, 91];
jMask.translation = {
Avoid deeply nested control flow statements. Open
Open
if (resetPos === -1) {
resetPos = m;
} else if (m === lastMaskChar) {
m = resetPos - offset;
}
Avoid deeply nested control flow statements. Open
Open
if (lastMaskChar === resetPos) {
m -= offset;
}