   # Private:
   setCharacterWidthCache: (scopes, char, val) ->
     scopes ?= NoScope
-    obj = EditorView.characterWidthCache
+    obj = @constructor.characterWidthCache
     for scope in scopes
       obj[scope] ?= {}
       obj = obj[scope]


  # Private:
  clearCharacterWidthCache: ->
    EditorView.characterWidthCache = {}

  pixelOffsetForScreenPosition: (position) ->
    {top, left} = @pixelPositionForScreenPosition(position)

  # Private:
  getCharacterWidthCache: (scopes, char) ->
    scopes ?= NoScope
    obj = @constsructor.characterWidthCache
    for scope in scopes
      obj = obj[scope]
      return null unless obj?
