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

Allow for resetText of a button to be a falsey value; fixes #13466 #13511

Merged
merged 1 commit into from
May 6, 2014

Conversation

hnrch02
Copy link
Collaborator

@hnrch02 hnrch02 commented May 5, 2014

@hnrch02
Copy link
Collaborator Author

hnrch02 commented May 5, 2014

Updated to comply with eqnull.

@hnrch02
Copy link
Collaborator Author

hnrch02 commented May 5, 2014

Should I include a unit test for this?

@cvrebert cvrebert added the js label May 5, 2014
@cvrebert cvrebert added this to the v3.2.0 milestone May 5, 2014
@cvrebert
Copy link
Collaborator

cvrebert commented May 5, 2014

It would certainly be nice if you did.

@hnrch02
Copy link
Collaborator Author

hnrch02 commented May 5, 2014

Just went ahead and copy-pasted the previous test, let me know if I should do it differently, I'm not that experienced with QUnit.

@fat
Copy link
Member

fat commented May 6, 2014

lgtm, thanks!

cvrebert added a commit that referenced this pull request May 6, 2014
Allow for resetText of a button to be a falsey value; fixes #13466
@cvrebert cvrebert merged commit 9444df2 into twbs:master May 6, 2014
@mdo mdo mentioned this pull request May 6, 2014
@XhmikosR
Copy link
Member

@hnrch02: this breaks tests with strict comparisons https://travis-ci.org/twbs/bootstrap/jobs/24849122

@XhmikosR
Copy link
Member

@hnrch02
Copy link
Collaborator Author

hnrch02 commented May 10, 2014

Hmm, everything passes locally. If you change the style to comply with eqeqeq, you'll need to compare it to undefined, not null. Ref: 7474f2b#diff-5492e5c74c97b8b5256879d136b55c88R202
I did it this way to adhere to the current JS style in master.

@hnrch02 hnrch02 deleted the button-reset-falsey-values-fix branch May 10, 2014 08:07
@XhmikosR
Copy link
Member

Thanks. I changed both checks to check for undefined since that's what its value was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants