[jQuery] Re: Naming Conventions

2007-07-01 Thread Jörn Zaefferer
Sean Catchpole wrote: .mask is nice because it's short, but .maskInput is nice because it's more unique. I can think of other ways to mask and element. Perhaps using both would be good: $.fn.mask = $.fn.maskInput = function(mask,options){...}; This would allow the quick and dirty, but in case

[jQuery] Re: Naming Conventions

2007-06-29 Thread Ganeshji Marwaha
its ur plugin... u r the boss... but i think u misunderstood my point. so, just to make it clear... i am not a fan of long method names. i am all for short and sweet. My intention was to tell you that the jquery plugin architecture is such that, each plugin is kinda a method on the jquery object

[jQuery] Re: Naming Conventions

2007-06-29 Thread Josh Bush
Thanks for the feedback. Does anyone else have any input on this. I think I'll be pushing a new release this weekend. Josh On Jun 28, 7:33 pm, 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] Re: Naming Conventions

2007-06-29 Thread Sean Catchpole
.mask is nice because it's short, but .maskInput is nice because it's more unique. I can think of other ways to mask and element. Perhaps using both would be good: $.fn.mask = $.fn.maskInput = function(mask,options){...}; This would allow the quick and dirty, but in case another plugins also

[jQuery] Re: Naming Conventions

2007-06-28 Thread Felix Geisendörfer
I like it simple: [x] .mask [ ] .maskInput -- Felix -- My latest blog posts: My Business: http://www.fg-webdesign.de Josh Bush wrote: As my masked input plugin approaches 1.0, I'm noticing that my plugin isn't following the conventions of the jQuery

[jQuery] Re: Naming Conventions

2007-06-28 Thread Ganeshji Marwaha
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

[jQuery] Re: Naming Conventions

2007-06-28 Thread Felix Geisendörfer
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. $('input.date').mask(...) should be good enough to imply what is meant I think. I used to be in