I would prefer .maskInput as the method name, coz, it conveys both the intention and what it applies to. "mask" doesnt convey where it applies to and probably can be used for a more generic plugin.
Regarding, the namespace for additional methods. I agree that MaskedInput is the one that actually makes sense. But for the sake of simplicity and consistency, i would name it MaskInput instead. -GTG On 6/28/07, Josh Bush <[EMAIL PROTECTED]> wrote:
As my masked input plugin approaches 1.0, I'm noticing that my plugin isn't following the conventions of the jQuery library itself. Currently my plugins main method is .maskedinput(mask,options) I'm thinking I should change it to .maskInput(mask,options) or simpley .mask(mask,options) I think this change is good because it's a verb and it shows action. Also, there is a global method which allows user defined char placeholders which Jörn advided me to namespace off. So, I plan to put it in $.MaskedInput.addPlaceholder(character,regex). What do you all think of the proposed name changes? I think it's important to remain consistent with the base library. I want to make sure that I get everything settled once I reach 1.0. Thanks Josh digitalbush.com