Jelajahi Sumber

fix line length to keep jslint happy

alexweissman 7 tahun lalu
induk
melakukan
77acc56a1e
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      src/js/select2/selection/multiple.js

+ 3 - 1
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) {