Browse Source

Line 146 of inputmask.numeric blows up in IE 7 #594

Robin Herbots 11 years ago
parent
commit
4d3a227113
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/jquery.inputmask.numeric.extensions.js

+ 1 - 1
js/jquery.inputmask.numeric.extensions.js

@@ -141,7 +141,7 @@ Optional extensions on the jquery.inputmask base
                                 //handle 0 for integerpart
                                 var matchRslt = maskset.buffer.join('').match(opts.regex.integerPart(opts)), radixPosition = $.inArray(opts.radixPoint, maskset.buffer);
                                 if (matchRslt) {
-                                    if (matchRslt["0"][0].indexOf("0") == 0 && pos >= opts.prefix.length) {
+                                    if (matchRslt["0"].indexOf("0") == 0 && pos >= opts.prefix.length) {
                                         if (radixPosition == -1 || (pos <= radixPosition && maskset["validPositions"][radixPosition] == undefined)) {
                                             maskset.buffer.splice(matchRslt.index, 1);
                                             pos = pos > matchRslt.index ? pos - 1 : matchRslt.index;