Skip to content

Commit

Permalink
replaced addSelf() with addBack() to support jQuery 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjaneyulu Paramalla authored Jan 2, 2020
1 parent 6ccd2de commit 0015b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
this.options.singleFieldNode = this.element;
this.element.addClass('tagit-hidden-field');
} else {
this.tagList = this.element.find('ul, ol').andSelf().last();
this.tagList = this.element.find('ul, ol').addBack().last();
}

this.tagInput = $('<input type="text" />').addClass('ui-widget-content');
Expand Down

0 comments on commit 0015b16

Please sign in to comment.