浏览代码

fix typing for multiple masks

Robin Herbots 11 年之前
父节点
当前提交
a108b049e7
共有 5 个文件被更改,包括 73 次插入69 次删除
  1. 二进制
      dist/jQuery.InputMask.3.0.1.nupkg
  2. 4 2
      dist/jquery.inputmask.bundle.js
  3. 48 48
      dist/jquery.inputmask.bundle.min.js
  4. 17 17
      dist/min/jquery.inputmask.js
  5. 4 2
      js/jquery.inputmask.js

二进制
dist/jQuery.InputMask.3.0.1.nupkg


+ 4 - 2
dist/jquery.inputmask.bundle.js

@@ -127,7 +127,7 @@
                             escaped = true;
                             break;
                         case opts.alternatormarker:
-                            console.log("alternator");
+
                             break;
                         default:
                             if (openenings.length > 0) {
@@ -359,6 +359,8 @@
                                     //search for next possible match
                                     testPos = currentPos;
                                 }
+                            } else if (match.isAlternator) {
+                                //TODO
                             } else if (match.isQuantifier && quantifierRecurse !== true) {
                                 var qt = match;
                                 for (var qndx = (ndxInitializer.length > 0 && quantifierRecurse !== true) ? ndxInitializer.shift() : 0; (qndx < (isNaN(qt.quantifier.max) ? qndx + 1 : qt.quantifier.max)) && testPos <= pos; qndx++) {
@@ -1480,7 +1482,7 @@
 
                 if (["focus"].indexOf(eventType) == -1 && el.value != elmasks[activeMasksetIndex]._valueGet()) {
                     var value = $(elmasks[activeMasksetIndex]).val() == "" ? elmasks[activeMasksetIndex]._valueGet() : $(elmasks[activeMasksetIndex]).val();
-                    $el.val(value);
+                    el.value = value;
                 }
                 if (["blur", "focus"].indexOf(eventType) == -1) {
                     if ($(elmasks[activeMasksetIndex]).hasClass("focus.inputmask")) {

文件差异内容过多而无法显示
+ 48 - 48
dist/jquery.inputmask.bundle.min.js


文件差异内容过多而无法显示
+ 17 - 17
dist/min/jquery.inputmask.js


+ 4 - 2
js/jquery.inputmask.js

@@ -127,7 +127,7 @@
                             escaped = true;
                             break;
                         case opts.alternatormarker:
-                            console.log("alternator");
+
                             break;
                         default:
                             if (openenings.length > 0) {
@@ -359,6 +359,8 @@
                                     //search for next possible match
                                     testPos = currentPos;
                                 }
+                            } else if (match.isAlternator) {
+                                //TODO
                             } else if (match.isQuantifier && quantifierRecurse !== true) {
                                 var qt = match;
                                 for (var qndx = (ndxInitializer.length > 0 && quantifierRecurse !== true) ? ndxInitializer.shift() : 0; (qndx < (isNaN(qt.quantifier.max) ? qndx + 1 : qt.quantifier.max)) && testPos <= pos; qndx++) {
@@ -1480,7 +1482,7 @@
 
                 if (["focus"].indexOf(eventType) == -1 && el.value != elmasks[activeMasksetIndex]._valueGet()) {
                     var value = $(elmasks[activeMasksetIndex]).val() == "" ? elmasks[activeMasksetIndex]._valueGet() : $(elmasks[activeMasksetIndex]).val();
-                    $el.val(value);
+                    el.value = value;
                 }
                 if (["blur", "focus"].indexOf(eventType) == -1) {
                     if ($(elmasks[activeMasksetIndex]).hasClass("focus.inputmask")) {