firstandthird / mask

Javascript input mask plugin
MIT License
1 stars 0 forks source link

move types to fidel defaults #4

Closed jgallen23 closed 10 years ago

jgallen23 commented 10 years ago

lets move types to:

$.declare('mask', {
  defaults: {
    types: {
      ssn: {}
    }
  }
});

that way they can be extended and changed with either $().mask({ types: }) or $.fn.mask.defaults.types.blah = {};

dawnerd commented 10 years ago

Tried default.types but it doesn't look like fidel does a deep extend so it removes the other defaults.

So for now it's just defaults.ssn, etc

jgallen23 commented 10 years ago

K