-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplication #2
Comments
What do you mean with "duplication"? As you suggest name method getxxx could be a good, this way there is no need to indicate which methods can act as getters. The only issue is you will not be using same method both for read/write. |
What do you think about something like this, too ugly ?:
|
While the code is fine I think the issue is it breaks de jQuery convention to use the same method both for read/write. For example:
|
Although this one of the most sane ways of doing jQuery plugins, there is duplication there for the getters, what do you think of another convention by using get prefix in names of getters so that you automatically introspect and export them automatically instead of retyping it in the getters ?
The text was updated successfully, but these errors were encountered: