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

Change element.value references to use jQuery.val() method #116

Closed
wants to merge 1 commit into from
Closed

Conversation

KennethScott
Copy link

Jörn, per our email discussion:

This change standardizes the element value lookups, thereby allowing users to override the standard jQuery val() method for any needed preprocessing of element values.

@mlynch
Copy link
Contributor

mlynch commented Mar 27, 2012

Hi. This pull request breaks current tests. Namely string replace() is called on val() which breaks with a non-string value (such as multi-selects). Could you add more checks to the val calls and make sure the tests pass?

@mlynch
Copy link
Contributor

mlynch commented Mar 28, 2012

d963540 makes this pass our tests, but I'm not sure that calling Array.join on the value of a multiple="true" select is correct. I'd like some feedback on this.

@mlynch mlynch mentioned this pull request Mar 28, 2012
mlynch added a commit to mlynch/jquery-validation that referenced this pull request Mar 28, 2012
@KennethScott
Copy link
Author

excellent - i'd almost forgotten about this. thanks for the help.

mlynch added a commit to mlynch/jquery-validation that referenced this pull request Mar 30, 2012
… fixed some methods that relied on string values. Fix for jquery-validation#116
@mlynch mlynch closed this in e30b3aa Apr 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants