Explorar o código

fix line length to keep jslint happy

alexweissman %!s(int64=7) %!d(string=hai) anos
pai
achega
77acc56a1e
Modificáronse 1 ficheiros con 3 adicións e 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) {