Skip to content

Commit

Permalink
Removing the double event binding registration of "selection:update" …
Browse files Browse the repository at this point in the history
…within SingleSelection.prototype to prevent multiple calls on the selection event (select2#4306)
  • Loading branch information
alexweissman committed Oct 26, 2017
1 parent 05208f9 commit 2042920
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -13,6 +13,7 @@
- User-defined types not normalized properly when passed in as data (#4632)
- Perform deep merge for `Defaults.set()` (#4364)
- Fix "the results could not be loaded" displaying during AJAX request (#4356)
- Removing the double event binding registration of `selection:update` (#4306)

#### Accessibility
- Improve `.select2-hidden-accessible` (#4908)
Expand Down
4 changes: 0 additions & 4 deletions src/js/select2/selection/single.js
Expand Up @@ -62,10 +62,6 @@ define([
self.$selection.focus();
}
});

container.on('selection:update', function (params) {
self.update(params.data);
});
};

SingleSelection.prototype.clear = function () {
Expand Down

0 comments on commit 2042920

Please sign in to comment.