Explorar el Código

fix line length to keep jslint happy

alexweissman hace 7 años
padre
commit
77acc56a1e
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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) {