-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
v2: Rename jQuery View hook methods #3703
Conversation
To distinguish these methods from “private” functions (i.e. `#_ensureElement`).
Uh why? They're "private" here still. Other methods are exposed to plugins for overriding and they don't worry about naming either. The |
They're hooks meant to be overridden, not private methods. Methods like I'm working on a PR that'll change |
But we've always exposed functions with the intention of allowing them to be overridden, either by plugin authors or end users. This is really no different than allowing an associations plugin to override |
I don't see methods like
I'm working on exposing our other hooks ( |
Underscored methods are certainly meant to be overridden. Otherwise, we'd hide them in local scope, no? The distinction is that they're less stable and could be changed without the same notice as public API. My opinion would be that these methods fit that description. |
👎 this seems like an unnecessary reason to break code and overall poor change |
DO NOT MERGE, BREAKING CHANGE This is for the next major, v2.
To distinguish these methods from “private” methods (i.e.
#_ensureElement
).