From 91d4ef26532173148d6a01d58b3b0171e668554d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 3 Dec 2013 11:24:59 -0800 Subject: [PATCH] :memo: Mark more EditorView methods private --- src/editor-view.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/editor-view.coffee b/src/editor-view.coffee index 3c87c504f..0b5076ba9 100644 --- a/src/editor-view.coffee +++ b/src/editor-view.coffee @@ -977,9 +977,11 @@ class EditorView extends View @setWidthInChars() @editor.setSoftWrap(not @editor.getSoftWrap()) + # Private: calculateWidthInChars: -> Math.floor(@scrollView.width() / @charWidth) + # Private: calculateHeightInLines: -> Math.ceil($(window).height() / @lineHeight) @@ -1064,6 +1066,7 @@ class EditorView extends View super atom.workspaceView?.focus() + # Private: beforeRemove: -> @trigger 'editor:will-be-removed' @removed = true @@ -1614,6 +1617,7 @@ class EditorView extends View index++ left + # Private: measureToColumn: (lineElement, tokenizedLine, screenColumn, lineStartBufferColumn) -> left = oldLeft = index = 0 iterator = document.createNodeIterator(lineElement, NodeFilter.SHOW_TEXT, TextNodeFilter) @@ -1659,6 +1663,7 @@ class EditorView extends View returnLeft ? left + # Private: getCharacterWidthCache: (scopes, char) -> scopes ?= NoScope obj = EditorView.characterWidthCache @@ -1667,6 +1672,7 @@ class EditorView extends View return null unless obj? obj[char] + # Private: setCharacterWidthCache: (scopes, char, val) -> scopes ?= NoScope obj = EditorView.characterWidthCache @@ -1675,6 +1681,7 @@ class EditorView extends View obj = obj[scope] obj[char] = val + # Private: clearCharacterWidthCache: -> EditorView.characterWidthCache = {}