Fix menu being copied into post clones. #894

This commit is contained in:
ccd0 2016-05-15 13:06:47 -07:00
parent c4ad49e392
commit 0e6096130b

View File

@ -19,7 +19,10 @@ Menu =
node: ->
if @isClone
Menu.makeButton @, $('.menu-button', @nodes.info)
button = $ '.menu-button', @nodes.info
$.rmClass button, 'active'
$.rm $('.dialog', button)
Menu.makeButton @, button
return
$.add @nodes.info, Menu.makeButton @