]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Converted Dropdown string concatenations to template literals
authorColin Marshall <colin.michael.marshall@gmail.com>
Tue, 26 Jan 2016 04:08:02 +0000 (21:08 -0700)
committerColin Marshall <colin.michael.marshall@gmail.com>
Mon, 1 Feb 2016 22:19:26 +0000 (15:19 -0700)
js/foundation.dropdown.js

index b87c8cc432c2e7fbc3e6384218ddf20b91d0c3af..dfb18ee8b9753b667e52d40d045572a242f26fa0 100644 (file)
@@ -93,7 +93,7 @@
   Dropdown.prototype._init = function(){
     var $id = this.$element.attr('id');
 
-    this.$anchor = $('[data-toggle="' + $id + '"]') || $('[data-open="' + $id + '"]');
+    this.$anchor = $(`[data-toggle="${$id}"]`) || $(`[data-open="${$id}"]`);
     this.$anchor.attr({
       'aria-controls': $id,
       'data-is-focus': false,