diff --git a/src/js/select2/selection/multiple.js b/src/js/select2/selection/multiple.js index c104e097..45225256 100644 --- a/src/js/select2/selection/multiple.js +++ b/src/js/select2/selection/multiple.js @@ -55,7 +55,9 @@ define([ }; MultipleSelection.prototype.clear = function () { - this.$selection.find('.select2-selection__rendered').empty().removeAttr('title'); + var $rendered = this.$selection.find('.select2-selection__rendered'); + $rendered.empty(); + $rendered.removeAttr('title'); }; MultipleSelection.prototype.display = function (data, container) {