💄 correct typo in method name

This commit is contained in:
Kevin Sawicki
2013-09-04 14:01:46 -07:00
parent aba6958e55
commit ca3fff8a94
2 changed files with 2 additions and 2 deletions

View File

@@ -408,7 +408,7 @@ describe "Editor", ->
editor.clearFontFamily()
it "positions the cursor to the clicked row and column", ->
{top, left} = editor.pixelOffsUtilsetForScreenPosition([3, 30])
{top, left} = editor.pixelOffsetForScreenPosition([3, 30])
editor.renderedLines.trigger mousedownEvent(pageX: left, pageY: top)
expect(editor.getCursorScreenPosition()).toEqual [3, 30]

View File

@@ -1502,7 +1502,7 @@ class Editor extends View
range.detach()
leftPixels
pixelOffsUtilsetForScreenPosition: (position) ->
pixelOffsetForScreenPosition: (position) ->
{top, left} = @pixelPositionForScreenPosition(position)
offset = @renderedLines.offset()
{top: top + offset.top, left: left + offset.left}