Menu icon Foundation
Weird Equalizer Error, Multiple Equalizers on One Page?

I'm using Equalizer to display blog/article posts. It is working great, except for one issue.

Whenever the page is displaying 3, 6 or 9 posts (any set of 3), the page throws an Equalizer error. As seen here:
http://mcfaddengavender.net/dev/zanes-tuc/tucson-community/page/2/

However, whenever the page is displaying any other number of posts (4, 5, 7, 8) there are no errors. As seen here:
http://mcfaddengavender.net/dev/zanes-tuc/tucson-community/

Here is the error I am getting:
TypeError: vals.first(...).offset(...) is undefined:
firstTopOffset = vals.first().offset().top,

Equalizerjquery

I'm using Equalizer to display blog/article posts. It is working great, except for one issue.

Whenever the page is displaying 3, 6 or 9 posts (any set of 3), the page throws an Equalizer error. As seen here:
http://mcfaddengavender.net/dev/zanes-tuc/tucson-community/page/2/

However, whenever the page is displaying any other number of posts (4, 5, 7, 8) there are no errors. As seen here:
http://mcfaddengavender.net/dev/zanes-tuc/tucson-community/

Here is the error I am getting:
TypeError: vals.first(...).offset(...) is undefined:
firstTopOffset = vals.first().offset().top,

Wing-Hou Chan about 5 years ago

Hey Jeremy!

I'm not seeing the problem. Have you fixed it? Your Equalized elements are the same height on both the pages you gave the link to. Also I'm not getting the error you gave.

Rafi Benkual about 5 years ago

I don't see any equalizer error either.

Jeremy Englert about 5 years ago

Hi Guys,

You can view the error here:
http://mcfaddengavender.net/dev/zanes-tuc/tucson-community/

Here is a screenshot of the Firebug console showing the error.
http://i.imgur.com/H2kayKw.jpg

Wing-Hou Chan about 5 years ago

Hey Jeremy!

Yep, I see the error in the console. Although it does not appear to have any effect on elements being "equalized" but I'll take a look into it.

Jeremy Englert about 5 years ago

Figured it out.

The loop I created was causing an extra (empty) row to be created. This row had the "equalizer watch" data attribute attached. However, since it was an empty row, it was throwing an error.

Wing-Hou Chan about 5 years ago

Oh! That's good to hear! Glad you shared it to the community!

Sorry, we weren't there for a while.

Rafi Benkual about 5 years ago

Good catch! The equalizer on watches on one line for each data-equalizer-watch. We are looking into a way to have it watch anything in a row although it is very complex.