Use querySelectorAll in getLineElement

querySelector only returns a single element, which won't work.
This commit is contained in:
Nathan Sobo
2012-03-08 19:54:38 -07:00
parent 53c84137e1
commit 9aaee17ee7

View File

@@ -214,7 +214,7 @@ class Editor extends View
@getLineElement(row).remove()
getLineElement: (row) ->
@lines.find("div.line:eq(#{row})")
$(@lines[0].querySelectorAll("div.line")[row])
toggleSoftWrap: ->
@setSoftWrap(not @softWrap)