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

Remove the selectScaleOption helper function, in Toolbar._updateUIState, and simply inline its code instead #8576

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Remove the selectScaleOption helper function, in Toolbar._updateUIState, and simply inline its code instead #8576

merged 1 commit into from
Jun 26, 2017

Conversation

Snuffleupagus
Copy link
Collaborator

After PR #8510, we now always lookup the localized page_scale_percent string to prevent any possible ordering issues. Since the scaleSelect dropdown is updated asynchronous, there's really no point in having a helper function any more, hence this code can rather be placed inline in Toolbar._updateUIState.

…State`, and simply inline its code instead

After PR 8510, we now always lookup the localized `page_scale_percent` string to prevent any possible ordering issues. Since the scaleSelect dropdown is updated asynchronous, there's really no point in having a helper function any more, hence this code can rather be placed inline in `Toolbar._updateUIState`.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/ef97f4378ccccf2/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/ef97f4378ccccf2/output.txt

Total script time: 2.31 mins

Published

@timvandermeij timvandermeij merged commit f87f0d6 into mozilla:master Jun 26, 2017
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the toolbar-inline-selectScaleOption branch June 27, 2017 08:01
movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…ectScaleOption

Remove the `selectScaleOption` helper function, in `Toolbar._updateUIState`, and simply inline its code instead
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.

3 participants