Skip to content

Commit

Permalink
Not provide tags array ref in change event
Browse files Browse the repository at this point in the history
  • Loading branch information
rvighne committed Aug 17, 2016
1 parent 0f2bbe3 commit 91039a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tagtrain.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ TagTrain.prototype.addTag = function addTag(value) {

this.tags.push(value);

this.trigger('add-tag', value).trigger('change', this.tags);
this.trigger('add-tag', value).trigger('change');
return true;
} else {
this.trigger('reject-tag', value);
Expand All @@ -128,7 +128,7 @@ TagTrain.prototype._removeItem = function _removeItem(item) {
item.id.slice(
TagTrain.tagIdPrefix.length)), 1)[0];

this.trigger('remove-tag', oldValue).trigger('change', this.tags);
this.trigger('remove-tag', oldValue).trigger('change');
};

TagTrain.prototype.removeAll = function removeAll() {
Expand All @@ -141,7 +141,7 @@ TagTrain.prototype.removeAll = function removeAll() {

this.tags.length = 0;

this.trigger('remove-all', oldTags).trigger('change', this.tags);
this.trigger('remove-all', oldTags).trigger('change');
};

TagTrain.prototype.getTags = function getTags() {
Expand Down

0 comments on commit 91039a5

Please sign in to comment.