浏览代码

fix for changeevent

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

+ 1 - 3
jquery.inputmask.js

@@ -514,9 +514,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                         var $input = $(this), input = this, nptValue = input._valueGet();
                         $input.removeClass('focus.inputmask');
                         if (nptValue != undoBuffer) {
-                            setTimeout(function() { //move the change event to later, ...
-                                $input.change();
-                            }, 0);
+                            $input.change();
                         }
                         if (opts.clearMaskOnLostFocus) {
                             if (nptValue == _buffer.join(''))