# HG changeset patch # User Sandrine Ribeau <sandrine.ribeau@logilab.fr> # Date 1269447220 -3600 # Wed Mar 24 17:13:40 2010 +0100 # Branch stable # Node ID 8fb6f8365507d776b8826ef513c72812ffcff223 # Parent 59e37e98fa32e2182d3688960c558e217221568e avoid using already defined variable diff --git a/data/cubes.comment.js b/data/cubes.comment.js --- a/data/cubes.comment.js +++ b/data/cubes.comment.js @@ -45,8 +45,7 @@ } }); } else { // comment cancelled, close div holding the form - var comment = jQuery('#comment' + eid + 'Slot'); - comment.remove(); + jQuery('#comment' + eid + 'Slot').remove(); } }