Browse Source

minor update

Robin Herbots 11 years ago
parent
commit
f89ed2f6ad
1 changed files with 3 additions and 5 deletions
  1. 3 5
      js/jquery.inputmask.js

+ 3 - 5
js/jquery.inputmask.js

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