ソースを参照

Merge pull request #112 from RobinHerbots/dev

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

+ 1 - 1
js/jquery.inputmask.js

@@ -534,7 +534,7 @@
                 if (!$input.is(":input")) return;
 
       		//correct greedy setting if needed
-                opts.greedy = opts.greedy && opts.repeat > 0;
+                opts.greedy = opts.greedy ? opts.greedy : opts.repeat == 0;
 
                 //handle maxlength attribute
                 var maxLength = $input.prop('maxLength');