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

Commit 3959dd0

Browse files
committed
convert to new view state (with no s)
1 parent bb3e75d commit 3959dd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/view/ViewCommandHandlers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ define(function (require, exports, module) {
318318
* @return {Object} JSON object for the new view state equivalent to
319319
* the old "fontSizeAdjustment" preference.
320320
*/
321-
function _convertToNewViewStates(key, value) {
321+
function _convertToNewViewState(key, value) {
322322
return { "fontSizeStyle": (DEFAULT_FONT_SIZE + value) + "px" };
323323
}
324324

@@ -329,7 +329,7 @@ define(function (require, exports, module) {
329329
CommandManager.register(Strings.CMD_SCROLL_LINE_UP, Commands.VIEW_SCROLL_LINE_UP, _handleScrollLineUp);
330330
CommandManager.register(Strings.CMD_SCROLL_LINE_DOWN, Commands.VIEW_SCROLL_LINE_DOWN, _handleScrollLineDown);
331331

332-
PreferencesManager.convertPreferences(module, {"fontSizeAdjustment": "user"}, true, _convertToNewViewStates);
332+
PreferencesManager.convertPreferences(module, {"fontSizeAdjustment": "user"}, true, _convertToNewViewState);
333333

334334
// Update UI when opening or closing a document
335335
$(DocumentManager).on("currentDocumentChange", _updateUI);

0 commit comments

Comments
 (0)