Use @ instead of this.

This commit is contained in:
Kevin Sawicki
2013-04-24 15:29:00 -07:00
parent 915d2e42b7
commit 4e8c6e29ad

View File

@@ -22,9 +22,9 @@ describe "Editor", ->
editor.isFocused = true
editor.enableKeymap()
editor.attachToDom = ({ heightInLines, widthInChars } = {}) ->
heightInLines ?= this.getBuffer().getLineCount()
this.height(getLineHeight() * heightInLines)
this.width(getCharWidth() * widthInChars) if widthInChars
heightInLines ?= @getBuffer().getLineCount()
@height(getLineHeight() * heightInLines)
@width(getCharWidth() * widthInChars) if widthInChars
$('#jasmine-content').append(this)
getLineHeight = ->