浏览代码

minor update

Robin Herbots 11 年之前
父节点
当前提交
f89ed2f6ad
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      js/jquery.inputmask.js

+ 3 - 5
js/jquery.inputmask.js

@@ -1457,12 +1457,10 @@
                     } else if (["click"].indexOf(e.type) != -1) {
                     } else if (["click"].indexOf(e.type) != -1) {
                         caret(lmnt, caretPos.begin, caretPos.end);
                         caret(lmnt, caretPos.begin, caretPos.end);
                     }
                     }
+                    $(lmnt).triggerHandler(e);
                     setTimeout(function () {
                     setTimeout(function () {
-                        $(lmnt).triggerHandler(e);
-                        setTimeout(function () {
-                            determineActiveMask(e.type, elmasks);
-                        }, 0);
-                    }, 0);
+                        determineActiveMask(e.type, elmasks);
+                    }, 5);
                 });
                 });
             });
             });
         };
         };