Avoid leaking window resize subscriptions in editor spec

This commit is contained in:
Nathan Sobo
2012-06-05 14:23:34 -06:00
parent e7ffaa1757
commit 3a776347ff
2 changed files with 8 additions and 3 deletions

View File

@@ -228,8 +228,6 @@ class Editor extends View
else
@gutter.addClass('drop-shadow')
$(window).on "resize.editor#{@id}", =>
@updateRenderedLines()
afterAttach: (onDom) ->
return if @attached or not onDom