Use DOM's querySelector instead of JQuery's Swizzle for getLineElement

This commit is contained in:
Corey Johnson
2012-03-08 18:26:06 -08:00
parent 1ce161504d
commit 9be4dd5053

View File

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