From e43144c1ae30c1613beb50dd719908acbf9dda9c Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 25 Mar 2013 13:14:43 -0700 Subject: [PATCH] Use transition remove shorthand --- js/id/ui/preset_grid.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/id/ui/preset_grid.js b/js/id/ui/preset_grid.js index 89c592041..3d106107e 100644 --- a/js/id/ui/preset_grid.js +++ b/js/id/ui/preset_grid.js @@ -164,10 +164,7 @@ iD.ui.PresetGrid = function(context, entity) { .style('max-height', '0px') .style('padding-top', '0px') .style('padding-bottom', '0px') - .each('end', function() { - shown.remove(); - }); - + .remove(); if (shown.datum() === entity && shown.classed(klass)) return; shownIndex = Array.prototype.indexOf.call(shown.node().parentNode.childNodes, shown.node());