|
|
@@ -135,7 +135,7 @@ Inputmask.prototype = {
|
|
|
if (opts.importDataAttributes === true) {
|
|
|
var attrOptions = npt.getAttribute(dataAttribute), option, dataoptions, optionData, p;
|
|
|
|
|
|
- function importOption(option, optionData) {
|
|
|
+ var importOption = function (option, optionData) {
|
|
|
optionData = optionData !== undefined ? optionData : npt.getAttribute(dataAttribute + "-" + option);
|
|
|
if (optionData !== null) {
|
|
|
if (typeof optionData === "string") {
|
|
|
@@ -145,7 +145,7 @@ Inputmask.prototype = {
|
|
|
}
|
|
|
userOptions[option] = optionData;
|
|
|
}
|
|
|
- }
|
|
|
+ };
|
|
|
|
|
|
if (attrOptions && attrOptions !== "") {
|
|
|
attrOptions = attrOptions.replace(/'/g, '"');
|
|
|
@@ -575,13 +575,13 @@ Inputmask.prototype = {
|
|
|
break;
|
|
|
case opts.alternatormarker:
|
|
|
|
|
|
- function groupQuantifier(matches) {
|
|
|
+ var groupQuantifier = function (matches) {
|
|
|
var lastMatch = matches.pop();
|
|
|
if (lastMatch.isQuantifier) {
|
|
|
lastMatch = groupify([matches.pop(), lastMatch]);
|
|
|
}
|
|
|
return lastMatch;
|
|
|
- }
|
|
|
+ };
|
|
|
|
|
|
if (openenings.length > 0) {
|
|
|
currentOpeningToken = openenings[openenings.length - 1];
|
|
|
@@ -838,7 +838,7 @@ function maskScope(actionObj, maskset, opts) {
|
|
|
originalPlaceholder;
|
|
|
|
|
|
//maskset helperfunctions
|
|
|
- function getMaskTemplate(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
|
|
|
+ var getMaskTemplate = function (baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
|
|
|
//includeMode true => input, undefined => placeholder, false => mask
|
|
|
|
|
|
var greedy = opts.greedy;
|
|
|
@@ -883,7 +883,7 @@ function maskScope(actionObj, maskset, opts) {
|
|
|
|
|
|
opts.greedy = greedy;
|
|
|
return maskTemplate;
|
|
|
- }
|
|
|
+ };
|
|
|
|
|
|
function getMaskSet() {
|
|
|
return maskset;
|