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

index 3c9ae17af95f8436ed4748adb17de3932f5a5336..11559274010ae041300b0a4c2f7a947f1a5c42c1 100644 (file)
@@ -47,7 +47,7 @@
    */
   Equalizer.prototype._init = function(){
     var eqId = this.$element.attr('data-equalizer') || '';
-    var $watched = this.$element.find('[data-equalizer-watch="' + eqId + '"]');
+    var $watched = this.$element.find(`[data-equalizer-watch="${eqId}"]`);
 
     this.$watched = $watched.length ? $watched : this.$element.find('[data-equalizer-watch]');
     this.$element.attr('data-resize', (eqId || Foundation.GetYoDigits(6, 'eq')));