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 $.on a, 'click', ExpandComment.cb
cb: (e) -> cb: (e) ->
e.preventDefault() e.preventDefault()
post = Get.postFromNode @ ExpandComment.expand Get.postFromNode @
ExpandComment.expand post
expand: (post) -> expand: (post) ->
if post.nodes.longComment and !post.nodes.longComment.parentNode if post.nodes.longComment and !post.nodes.longComment.parentNode
$.replace post.nodes.shortComment, post.nodes.longComment $.replace post.nodes.shortComment, post.nodes.longComment