From 31444b09ec159402718358b407659dcecb958693 Mon Sep 17 00:00:00 2001 From: andrej Date: Wed, 2 Nov 2016 16:37:30 +0100 Subject: [PATCH] Equalizer now works for any number of elements. --- js/foundation.equalizer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/foundation.equalizer.js b/js/foundation.equalizer.js index 7c7818e7b..c52187a03 100644 --- a/js/foundation.equalizer.js +++ b/js/foundation.equalizer.js @@ -158,6 +158,9 @@ class Equalizer { * @private */ _isStacked() { + if (!this.$watched[0] || !this.$watched[1]) { + return true; + } return this.$watched[0].getBoundingClientRect().top !== this.$watched[1].getBoundingClientRect().top; } -- 2.47.2