Browse Source

Bugfix for unresolved variable $input

$input variable is undefined in `unmaskedvalue` function.
Jean-Baptiste Alleaume 10 years ago
parent
commit
60a03929cd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/inputmask.js

+ 1 - 1
js/inputmask.js

@@ -1639,7 +1639,7 @@
 						if (unmaskedValue !== null) {
 							var bufferValue = (isRTL ? getBuffer().slice().reverse() : getBuffer()).join("");
 							if ($.isFunction(opts.onUnMask)) {
-								unmaskedValue = (opts.onUnMask.call($input, bufferValue, unmaskedValue, opts) || unmaskedValue);
+								unmaskedValue = (opts.onUnMask.call(input, bufferValue, unmaskedValue, opts) || unmaskedValue);
 							}
 						}
 						return unmaskedValue;