Menu icon Foundation
Equalizer error settings not defined

I'm using version 5.2.0 and trying to use equalizer. I'm getting an error in foundation.equalizer.js equalize function (on line 33) that settings is not defined. This must mean that "equalizer.data(this.attr_name(true)+'-init') is not returning an object.

I didn't see anywhere in the documentation about having an ".... -init" attribute on anything, but that seems to be what it's looking for.

The error occurs on the last line of the code shown:

 equalize: function(equalizer) {
var isStacked = false,
vals = equalizer.find('[' + this.attr_name() + '-watch]'),
firstTopOffset = vals.first().offset().top,
settings = equalizer.data(this.attr_name(true)+'-init');
if (vals.length === 0) return;
settings.before_height_change(); 

Equalizersettings not defined

I'm using version 5.2.0 and trying to use equalizer. I'm getting an error in foundation.equalizer.js equalize function (on line 33) that settings is not defined. This must mean that "equalizer.data(this.attr_name(true)+'-init') is not returning an object.

I didn't see anywhere in the documentation about having an ".... -init" attribute on anything, but that seems to be what it's looking for.

The error occurs on the last line of the code shown:

 equalize: function(equalizer) {
var isStacked = false,
vals = equalizer.find('[' + this.attr_name() + '-watch]'),
firstTopOffset = vals.first().offset().top,
settings = equalizer.data(this.attr_name(true)+'-init');
if (vals.length === 0) return;
settings.before_height_change(); 
Warren Sangster over 3 years ago

If you're using dynamic content you'll need to include

$(document).foundation('equalizer', 'reflow');

This fixed an issue where equalizer was being used in a modal window for me.