ソースを参照

Persist the definitions passed as direct options - to be used for the unmask

Robin Herbots 14 年 前
コミット
93804ca40c
1 ファイル変更3 行追加1 行削除
  1. 3 1
      jquery.inputmask.js

+ 3 - 1
jquery.inputmask.js

@@ -3,7 +3,7 @@ Input Mask plugin for jquery
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 Robin Herbots
 Copyright (c) 2010 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 0.2.9
+Version: 0.3.0
  
  
 This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com)
 This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com)
 */
 */
@@ -110,6 +110,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
                 var _buffer = this.data('_buffer');
                 var _buffer = this.data('_buffer');
                 opts.greedy = this.data('greedy');
                 opts.greedy = this.data('greedy');
                 opts.repeat = this.data('repeat');
                 opts.repeat = this.data('repeat');
+                opts.definitions = this.data('definitions');
                 return unmaskedvalue(this);
                 return unmaskedvalue(this);
             } else if (fn == 'setvalue') {
             } else if (fn == 'setvalue') {
                 setvalue(this, options); //options in this case the value
                 setvalue(this, options); //options in this case the value
@@ -388,6 +389,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
             input.data('repeat', opts.repeat);
             input.data('repeat', opts.repeat);
             input.data('inputmask', true);
             input.data('inputmask', true);
             input.data('autoUnmask', opts.autoUnmask);
             input.data('autoUnmask', opts.autoUnmask);
+            input.data('definitions', opts.definitions);
 
 
             //init buffer
             //init buffer
             var buffer = _buffer.slice();
             var buffer = _buffer.slice();