浏览代码

Merge pull request #60 from RobinHerbots/dev

Fix in checkval, .... I definitely need to add some unittest, ....
Robin Herbots 13 年之前
父节点
当前提交
fdf81b661f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/jquery.inputmask.js

+ 1 - 1
js/jquery.inputmask.js

@@ -383,7 +383,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                                 lastMatch = checkPosition = pos;
                                 lastMatch = checkPosition = pos;
                             } else {
                             } else {
                                 SetReTargetPlaceHolder(buffer, pos);
                                 SetReTargetPlaceHolder(buffer, pos);
-                                if (isMask(i) && c == getPlaceHolder(i)) {
+                                if (c == getPlaceHolder(pos)) {
                                     checkPosition = pos;
                                     checkPosition = pos;
                                     rtlMatch = pos;
                                     rtlMatch = pos;
                                 }
                                 }