Browse Source

autounmask fix

Robin Herbots 15 years ago
parent
commit
33f3a15d37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      jquery.inputmask.js

+ 1 - 1
jquery.inputmask.js

@@ -71,7 +71,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
         if (opts.patch_val && $.fn.val.inputmaskpatch != true) {
             $.fn.val = function() {
                 if (opts.autounmask && arguments.length == 0) {
-                    return unmaskedvalue(this);
+                    return $.isFunction(this.inputmask) ? this.inputmask('unmaskedvalue') : _val.apply(this, arguments); ;
                 }
                 else {
                     var result = _val.apply(this, arguments);