Skip to content

Instantly share code, notes, and snippets.

@vitch
Created November 18, 2010 17:59
Show Gist options
  • Save vitch/705354 to your computer and use it in GitHub Desktop.
Save vitch/705354 to your computer and use it in GitHub Desktop.
jquery.maskedinput-1.2.2.js
@@ -9,7 +9,7 @@
var pasteEventName = ($.browser.msie ? 'paste' : 'input') + ".mask";
var iPhone = (window.orientation != undefined);
- $.mask = {
+ $.maskedInput = {
//Predefined character definitions
definitions: {
'9': "[0-9]",
@@ -49,7 +49,7 @@
}
},
unmask: function() { return this.trigger("unmask"); },
- mask: function(mask, settings) {
+ maskedInput: function(mask, settings) {
if (!mask && this.length > 0) {
var input = $(this[0]);
var tests = input.data("tests");
@@ -62,7 +62,7 @@
completed: null
}, settings);
- var defs = $.mask.definitions;
+ var defs = $.maskedInput.definitions;
var tests = [];
var partialPosition = mask.length;
var firstNonMaskPos = null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment