|
|
@@ -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.3.1
|
|
|
+Version: 0.3.2
|
|
|
|
|
|
This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com)
|
|
|
*/
|
|
|
@@ -415,7 +415,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
|
|
|
if (_val.call(input) != undoBuffer) {
|
|
|
input.change();
|
|
|
}
|
|
|
- if (_val.call(input) == _buffer.join(''))
|
|
|
+ if (opts.clearMaskOnLostFocus && _val.call(input) == _buffer.join(''))
|
|
|
_val.call(input, '');
|
|
|
}).bind("focus.inputmask", function() {
|
|
|
var input = $(this);
|