Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a setting to optionally animate tag removals.

  • Loading branch information...
commit 95937beaadd3c8160c06c29626913740e522a8df 1 parent f868ea9
Julen Ruiz Aizpuru authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 js/tag-it.js
5 js/tag-it.js
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.