ソースを参照

Pass the position (pos) to the validator (IsValid). Can by usefull within the validator fn.

Robin Herbots 13 年 前
コミット
120acb19cd
1 ファイル変更1 行追加1 行削除
  1. 1 1
      jquery.inputmask.js

+ 1 - 1
jquery.inputmask.js

@@ -238,7 +238,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                 }
 
                 if (c) { chrs += c; }
-                return tests[testPos].fn != null ? tests[testPos].fn.test(chrs, buffer) : false;
+                return tests[testPos].fn != null ? tests[testPos].fn.test(chrs, buffer, pos) : false;
             }
 
             function isMask(pos) {