Browse Source

modified: jquery.inputmask.js
Prevent inputmask from loading/executing more then once

Robin Herbots 14 years ago
parent
commit
eaa88a8190
1 changed files with 3 additions and 2 deletions
  1. 3 2
      jquery.inputmask.js

+ 3 - 2
jquery.inputmask.js

@@ -3,12 +3,13 @@ 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.4.1
+Version: 0.4.2
  
 This plugin is based on the masked input plugin written by Josh Bush (digitalbush.com)
 */
 
 (function($) {
+if($.fn.inputmask == undefined){
     $.inputmask = {
         //options default
         defaults: {
@@ -719,5 +720,5 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
 
         }
     };
-
+}
 })(jQuery);