-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Remove event/alias and deprecated core module dependencies #1556
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
Conversation
This adds a custom build which excludes the event/alias and deprecated modules
@@ -531,9 +531,9 @@ $.Widget.prototype = { | |||
eventName = match[ 1 ] + instance.eventNamespace, | |||
selector = match[ 2 ]; | |||
if ( selector ) { | |||
delegateElement.delegate( selector, eventName, handlerProxy ); | |||
delegateElement.on( eventName, selector, handlerProxy ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need the if
and two separate calls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
This makes me happy and sad. But the sad part is because of bad design in jQuery. This is good to land. Once the dependencies are updated, I'd like the custom build to become the default version that's used in tests. |
This also adds an additional version of jQuery to the tests which excluded the event/alias and deprecated modules.
Note: this does not fully work or pass tests until we also update mousewheel and simulate. The changes in both of these cases are trivial and just a couple lines.