Browse Source

Merge branch 'dev' into optional

Conflicts:
	js/jquery.inputmask.js
Robin Herbots 13 years ago
parent
commit
05aa00bfa6
1 changed files with 5 additions and 3 deletions
  1. 5 3
      js/jquery.inputmask.js

+ 5 - 3
js/jquery.inputmask.js

@@ -163,11 +163,11 @@
                 });
                 });
             }
             }
 
 
-            //helper functions
+            //helper     functions
             function isInputEventSupported(eventName) {
             function isInputEventSupported(eventName) {
                 var el = document.createElement('input'),
                 var el = document.createElement('input'),
-		            eventName = 'on' + eventName,
-		            isSupported = (eventName in el);
+		        eventName = 'on' + eventName,
+		        isSupported = (eventName in el);
                 if (!isSupported) {
                 if (!isSupported) {
                     el.setAttribute(eventName, 'return;');
                     el.setAttribute(eventName, 'return;');
                     isSupported = typeof el[eventName] == 'function';
                     isSupported = typeof el[eventName] == 'function';
@@ -1067,6 +1067,8 @@
                     }
                     }
                 }
                 }
             }
             }
+
+            return this; //return this to expose publics
         };
         };
     }
     }
 })(jQuery);
 })(jQuery);