From bc24b6a73cf6fdd7eb49cd8a1f3529eede36ab39 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 10 Apr 2012 19:28:36 -0600 Subject: [PATCH] Always fire attach events (change from `one` to `on`) --- src/app/editor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/editor.coffee b/src/app/editor.coffee index 8e7e3ffa8..656fa426a 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -166,7 +166,7 @@ class Editor extends View else @gutter.addClass('drop-shadow') - @one 'attach', => + @on 'attach', => @calculateDimensions() @hiddenInput.width(@charWidth) @setMaxLineLength() if @softWrap