Shave a line.

This commit is contained in:
Mayhem 2013-08-11 23:41:49 +02:00
parent e0cb19ac53
commit 35cfa595bf

View File

@ -10,8 +10,7 @@ ExpandComment =
$.on a, 'click', ExpandComment.cb
cb: (e) ->
e.preventDefault()
post = Get.postFromNode @
ExpandComment.expand post
ExpandComment.expand Get.postFromNode @
expand: (post) ->
if post.nodes.longComment and !post.nodes.longComment.parentNode
$.replace post.nodes.shortComment, post.nodes.longComment