ソースを参照

fix voor patch of val function

Robin Herbots 15 年 前
コミット
6da62874d1
1 ファイル変更2 行追加2 行削除
  1. 2 2
      jquery.inputmask.js

+ 2 - 2
jquery.inputmask.js

@@ -3,7 +3,7 @@ Input Mask plugin for jquery
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 0.1.3
+Version: 0.1.4
    
 This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com)
 */
@@ -69,7 +69,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
         var _val = $.inputmask.val;
         if (opts.patch_val && $.fn.val.inputmaskpatch != true) {
             $.fn.val = function(value) {
-                var result = _val.call(this, value);
+                var result = _val.apply(this, arguments);
                 if (value && $.isFunction(this.inputmask)) {
                     this.trigger('blur');
                 }