Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Added a setting to optionally animate tag removals.
Browse files Browse the repository at this point in the history
  • Loading branch information
julen committed Aug 17, 2011
1 parent f868ea9 commit 95937be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/tag-it.js
Expand Up @@ -39,6 +39,9 @@
// for inputting multi-word tags. // for inputting multi-word tags.
allowSpaces: false, allowSpaces: false,


// Whether to animate tag removals or not.
animate: true,

// The below options are for using a single field instead of several // The below options are for using a single field instead of several
// for our form values. // for our form values.
// //
Expand Down Expand Up @@ -341,7 +344,7 @@
}, },


removeTag: function(tag, animate) { removeTag: function(tag, animate) {
if (typeof animate === 'undefined') { animate = true; } animate = animate || this.options.animate;


tag = $(tag); tag = $(tag);


Expand Down

0 comments on commit 95937be

Please sign in to comment.