Skip to content

Commit

Permalink
fix tag removal animation
Browse files Browse the repository at this point in the history
  • Loading branch information
aehlke committed Nov 23, 2012
1 parent fcf2a1c commit 885a6bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,13 +370,13 @@
}
// Animate the removal.
if (animate) {
var hide_args = ($.easing && $.easing.blind) ? ['blind', {direction: 'horizontal'}, 'fast'] : ['fast'];
var hide_args = ($.effects && $.effects.blind) ? ['blind', {direction: 'horizontal'}, 'fast'] : ['fast'];

hide_args.push(function() {
tag.remove();
});

tag.fadeOut('fast').hide.apply(this, hide_args).dequeue();
tag.fadeOut('fast').hide.apply(tag, hide_args).dequeue();
} else {
tag.remove();
}
Expand Down
2 changes: 1 addition & 1 deletion js/tag-it.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 885a6bf

Please sign in to comment.