Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move onTagRemoved trigger to after the event.

This was confusing because the onTagAdded
worked by triggering the event after and
the onTagRemoved triggered the event after.
Now both events are consistant.
  • Loading branch information...
commit 28f6f2b30a5c48073b03996b5346f137c70fe827 1 parent d64a794
Sterling Cobb authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/tag-it.js
View
5 js/tag-it.js
@@ -357,8 +357,6 @@
tag = $(tag);
- this._trigger('onTagRemoved', null, tag);
-
if (this.options.singleField) {
var tags = this.assignedTags();
var removedTagLabel = this.tagLabel(tag);
@@ -367,6 +365,9 @@
});
this._updateSingleTagsField(tags);
}
+
+ this._trigger('onTagRemoved', null, tag);
+
// Animate the removal.
if (animate) {
tag.fadeOut('fast').hide('blind', {direction: 'horizontal'}, 'fast', function(){
Please sign in to comment.
Something went wrong with that request. Please try again.