Fixes removing the namespace from an event name#2115
Closed
Eydamos wants to merge 1 commit intojquery:mainfrom
Closed
Fixes removing the namespace from an event name#2115Eydamos wants to merge 1 commit intojquery:mainfrom
Eydamos wants to merge 1 commit intojquery:mainfrom
Conversation
|
|
Member
|
Thanks for the PR. All changes require tests, though. I’m not sure why existing tests didn’t run for this PR but maybe that would happen on the next update to the PR. |
Member
|
Closing and reopening in order to run the tests. |
melloware
approved these changes
Oct 10, 2022
Member
|
@TimWerdin in addition to writing new tests, you need to ensure existing ones pass. You can now see that's not the case right now. |
Author
|
I was on vacation until yesterday. I will have a look this week |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bootstrap uses events which need to include a namespace. E.g. the event name to bind to showing a modal is
show.bs.modal. Just setting the event onshowwill not work.Example:
The issue when using jquery-UI's
_onmethod is that the namespace gets cut off. So this will not work:The issue is the regex in the
_onmethod. It does not allow a dot in the event name and also it searches for zero to unlimited amount of spaces to split of the selector.This results into the following:
To prevent this I changed the regex to also allow dots so namespaces will not be broken apart and also to require at least one whitespace.