Browse Source

added definition for indexOF for older browsers

Robin Herbots 13 years ago
parent
commit
5ae490c226
1 changed files with 2 additions and 0 deletions
  1. 2 0
      js/jquery.inputmask.js

+ 2 - 0
js/jquery.inputmask.js

@@ -9,6 +9,8 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
 */
 
 (function($) {
+    Array.prototype.indexOf = Array.prototype.indexOf || function(item, start) { for (var i = start || 0; i < this.length; i++) if (this[i] == item) return i; return -1; }
+ 
     if ($.fn.inputmask == undefined) {
         $.inputmask = {
             //options default