Skip to content
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

rm redundant jQuery wrapping to find value of element #1512

Closed
wants to merge 2 commits into from
Closed

rm redundant jQuery wrapping to find value of element #1512

wants to merge 2 commits into from

Conversation

arjun024
Copy link

No description provided.

@Kangaroopower
Copy link

Are you sure this change isn't against the style guide?

@arjun024
Copy link
Author

Yes. i checked. First commit is to make it conform to style guide.

@@ -40,8 +40,7 @@ jQuery.ajaxTransport( "script", function( s ) {
async: true,
charset: s.scriptCharset,
src: s.url
}).on(
"load error",
}).on("load error",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why jscs didn't catch this, but it should be ( "

@dmethvin
Copy link
Member

@arjun024 Can you reply on the questions when you get a second? It may be fine but I'm counting on you to answer so I can be lazy. 😄

@arjun024
Copy link
Author

@dmethvin valhook for option was removed in a previous commit. (see fdd78fa)

@arjun024
Copy link
Author

@dmethvin option.value will also fallback to the the option text if value attribute isn't specified. the wrapping is redundant.

@dmethvin
Copy link
Member

What has me confused is that this has other patches in the diff other than yours. Can you rebase against the current master? Also, for your own sanity you should work in a branch and not in your master. If you are lucky it will be as easy as pull --rebase upstream master to rebase, but if you have made other changes since this it will be a mess.

@arjun024
Copy link
Author

@dmethvin I have rebased against the current master. Yes, I understand it's a bad idea to work on master. thanks for the tip :)

@dmethvin
Copy link
Member

Actually, option.value won't fall back reliably in all browsers so we have to leave that in. See

valHooks: {

@dmethvin dmethvin closed this Mar 21, 2014
@lock lock bot locked as resolved and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants