-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Do not expose jQuery.domManip method #2225
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
Comments
Sorry about the late comment, but this is important for CanJS. It's how we are able to add an "inserted" event everytime new DOM is added to the page. Anyway, this could be made public again in future releases? |
@justinbmeyer can you open a ticket for this? I think we should look at the problem from a functionality/capability standpoint rather than just re-exposing this internal method. |
@justinbmeyer is CanJS still using .domManip? Since it's an undocumented method we were planning to remove it in 1.12/2.2 but we can extend that to 3.0 if we hear from you in the next day. |
Yes, we are still using it. In about 6 months, we are finally dropping support for browsers that don't support MutationEvents/Observers. At that point, we won't need it exposed anymore. Thank you very much for keeping it around. |
Reopening as a reminder |
The milestone here is a little misleading as we're now planning to drop it only in 3.0.0. :) But OK, it's a good reminder and we can bump the milestone back later. |
All the "Do not expose" tickets may need to be re-exposed for 1.12/2.2 but I figured we should discuss. Rather than reverting the commits it would be easier to simply re-expose each via something like |
Fixed in 1.12/2.2 |
Changed milestone back to 3.0 as they're still going to be privatized in 3.0. |
@dmethvin I should have noticed this earlier today. But I need to overwrite Is there anyway to get this changed, so that (this hook is far more important than |
I think this would need to be discussed with the team. Is this a temporary reprieve for 1.x/2.x, or do you need a feature to hook DOM changes for 3.0 as well? We're not planning on anything other than patch releases for 1.x/2.x from here on out and weren't expecting to expose any of these for 3.0. |
A temporary reprieve. CanJS 3.0 will start using MutationObservers. It will be able to support "inserted" and "removed" events without hijacking jQuery. I could work around this by overwriting all of jQuery's modifier methods. However, I'd need |
@dmethvin I'm able to work around this. So no need to add it back. |
Since we get this opportunity only in major version, i'm gonna label it as a blocker
The text was updated successfully, but these errors were encountered: