 
   # Private:
   clearCharacterWidthCache: ->
-    EditorView.characterWidthCache = {}
+    @constructor.characterWidthCache = {}
 
   pixelOffsetForScreenPosition: (position) ->
     {top, left} = @pixelPositionForScreenPosition(position)

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

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