Use transition remove shorthand

This commit is contained in:
John Firebaugh
2013-03-25 13:14:43 -07:00
parent f6d1abf2bf
commit e43144c1ae

View File

@@ -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());