Browse Source

fix voor patch of val function

Robin Herbots 15 years ago
parent
commit
6da62874d1
1 changed files with 2 additions and 2 deletions
  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');
                 }