|
@@ -55,17 +55,15 @@ BlazeComponent.extendComponent({
|
|
// transition for the actual animation.
|
|
// transition for the actual animation.
|
|
lists._uihooks = {
|
|
lists._uihooks = {
|
|
removeElement: function(node) {
|
|
removeElement: function(node) {
|
|
- var removeNode = function() {
|
|
|
|
|
|
+ var removeNode = _.once(function() {
|
|
node.parentNode.removeChild(node);
|
|
node.parentNode.removeChild(node);
|
|
- };
|
|
|
|
|
|
+ });
|
|
if ($(node).hasClass('js-card-detail')) {
|
|
if ($(node).hasClass('js-card-detail')) {
|
|
$(node).css({
|
|
$(node).css({
|
|
- flex: '0',
|
|
|
|
|
|
+ flex: '0 0 0',
|
|
padding: 0
|
|
padding: 0
|
|
});
|
|
});
|
|
- $(lists).one(endTransitionEvents, function() {
|
|
|
|
- removeNode();
|
|
|
|
- });
|
|
|
|
|
|
+ $(lists).one(endTransitionEvents, removeNode);
|
|
} else {
|
|
} else {
|
|
removeNode();
|
|
removeNode();
|
|
}
|
|
}
|