Skip to content

Commit

Permalink
Send the onTagRemove event after the single input field has been upda…
Browse files Browse the repository at this point in the history
…ted so its easy to grab the new set of tags as a set.
  • Loading branch information
Jeff Palmucci committed Nov 2, 2011
1 parent 396745e commit 586c9fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,6 @@

tag = $(tag);

this._trigger('onTagRemoved', null, tag);

if (this.options.singleField) {
var tags = this.assignedTags();
var removedTagLabel = this.tagLabel(tag);
Expand All @@ -363,6 +361,9 @@
});
this._updateSingleTagsField(tags);
}

this._trigger('onTagRemoved', null, tag);

// Animate the removal.
if (animate) {
tag.fadeOut('fast').hide('blind', {direction: 'horizontal'}, 'fast', function(){
Expand Down

0 comments on commit 586c9fc

Please sign in to comment.