I'm concatenating Foundation 6's core.js, util.mediaQuery.js, and equalizer.js files. In the source code, the source order is jquery first, then foundation.core.js, util.mediaQuery.js, and the plug-in file, per the documentation. I also compile their JS to ECMAScript 2015, using Babel per Zurb's docs.
This error occurs with util.mediaQuery.js included:
Uncaught TypeError: Foundation.onImagesLoaded is not a function(…)
This error occurs without util.mediaQuery.js included:
Uncaught TypeError: Cannot read property '_init' of undefined
I'm not sure it's relevant to include the snippets these errors reference. According to Zurb's documentation for Equalizer: "The file foundation.equalizer.js must be included in your JavaScript to use this plugin, along with foundation.core.js.".
And, true to form, you'd need to visit a different page within their docs to read that "if you're only using certain plugins, know that they all require foundation.core.js and foundation.util.mediaQuery.js to be loaded first".
Despite the nebulous direction provided by Zurb's docs, one of the two above scenarios should produce a functioning plug-in rather than an error.
Any insight as to why it's occurring is greatly appreciated.