Skip to content

Use strict equalities in web/* #5108

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

Merged
merged 5 commits into from
Aug 1, 2014

Conversation

timvandermeij
Copy link
Contributor

No description provided.

@timvandermeij timvandermeij changed the title Use strict equalities in /web Use strict equalities in web/* Jul 31, 2014
@timvandermeij
Copy link
Contributor Author

@Snuffleupagus Could you review this?

@Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Could you review this?

Sure, I'll look at both of them!
(This is actually kind of funny, since I've recently started doing this for the files in /src :-)

@Snuffleupagus Snuffleupagus self-assigned this Aug 1, 2014
@@ -225,7 +225,7 @@ var StepperManager = (function StepperManagerClosure() {
var options = stepperChooser.options;
for (i = 0; i < options.length; ++i) {
var option = options[i];
option.selected = option.value == pageIndex;
option.selected = option.value === pageIndex;
Copy link
Collaborator

Choose a reason for hiding this comment

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

option.value is a string, and pageIndex is an integer. Interestingly enough this change doesn't break anything, but I still think this should be changed to e.g.

(option.value | 0) === pageIndex;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting indeed because I tested it and I thought it was fine because there was no difference in behavior. Good catch, sorry for missing that!

@Snuffleupagus
Copy link
Collaborator

Good to go with comment addressed!

@timvandermeij
Copy link
Contributor Author

I'll adress that right away and merge it.

PS: I'm on IRC for any coordination on these changes.

@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Aug 1, 2014

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/6c7373978b0a22f/output.txt

timvandermeij added a commit that referenced this pull request Aug 1, 2014
@timvandermeij timvandermeij merged commit 49142e9 into mozilla:master Aug 1, 2014
@timvandermeij timvandermeij deleted the strict-equalities branch August 1, 2014 17:26
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.

3 participants