Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Make font settings react to pref changes #11190

Merged
merged 2 commits into from
Jun 1, 2015

Conversation

marcelgerber
Copy link
Contributor

This should go with, or before, #11130.

@@ -49,6 +49,10 @@ define(function (require, exports, module) {

var prefs = PreferencesManager.getExtensionPrefs("fonts");

// These variables contain the preference values. They are used to no-op in case nothing changed
// and updated *after* the call to setFontSize/setFontFamily.
var fontSizeValue, fontFamilyValue;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add proper jsdoc to these two variables and mark them as private.

@MiguelCastillo
Copy link
Contributor

@marcelgerber changes look good. I am not even sure why I didn't add this with the initial PR, so thanks :)

@nethip
Copy link
Contributor

nethip commented Jun 1, 2015

@marcelgerber thanks for this change! I just have a s comment. Can we change the variable name to something like currFontSizeValue. I guess it would improve the readability of the code. Otherwise LGTM.

@abose abose added this to the Release 1.4 milestone Jun 1, 2015
@marcelgerber
Copy link
Contributor Author

Changes pushed.

@MiguelCastillo
Copy link
Contributor

looks good, works well. merging in.

MiguelCastillo added a commit that referenced this pull request Jun 1, 2015
Make font settings react to pref changes
@MiguelCastillo MiguelCastillo merged commit 83b632d into master Jun 1, 2015
@abose abose deleted the marcel/fonts-react-prefs branch June 1, 2015 14:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants