Browse files

Added a setting to optionally animate tag removals.

  • Loading branch information...
1 parent f868ea9 commit 95937beaadd3c8160c06c29626913740e522a8df @julen julen committed Aug 17, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/tag-it.js
View
5 js/tag-it.js
@@ -39,6 +39,9 @@
// for inputting multi-word tags.
allowSpaces: false,
+ // Whether to animate tag removals or not.
+ animate: true,
+
// The below options are for using a single field instead of several
// for our form values.
//
@@ -341,7 +344,7 @@
},
removeTag: function(tag, animate) {
- if (typeof animate === 'undefined') { animate = true; }
+ animate = animate || this.options.animate;
tag = $(tag);

0 comments on commit 95937be

Please sign in to comment.