浏览代码

remove useless charat

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

+ 2 - 2
js/jquery.inputmask.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2012 Robin Herbots
 * Copyright (c) 2010 - 2012 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 1.2.8
+* Version: 1.2.8a
 */
 */
 
 
 (function ($) {
 (function ($) {
@@ -953,7 +953,7 @@
                     e = e || window.event;
                     e = e || window.event;
                     var k = e.which || e.charCode || e.keyCode;
                     var k = e.which || e.charCode || e.keyCode;
 
 
-                    if (opts.numericInput && k == opts.radixPoint.charCodeAt(opts.radixPoint.length - 1)) {
+                    if (opts.numericInput && k == opts.radixPoint) {
                         var nptStr = input._valueGet();
                         var nptStr = input._valueGet();
                         var radixPosition = nptStr.indexOf(opts.radixPoint);
                         var radixPosition = nptStr.indexOf(opts.radixPoint);
                         caret(input, seekNext(buffer, radixPosition != -1 ? radixPosition : getMaskLength()));
                         caret(input, seekNext(buffer, radixPosition != -1 ? radixPosition : getMaskLength()));