mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Use @ instead of this.
This commit is contained in:
@@ -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 = ->
|
||||
|
||||
Reference in New Issue
Block a user