]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Update foundation.drilldown.js 7604/head
authorEric Jung <eric.jung@getfoxyproxy.org>
Thu, 17 Dec 2015 21:54:45 +0000 (14:54 -0700)
committerEric Jung <eric.jung@getfoxyproxy.org>
Thu, 17 Dec 2015 21:54:45 +0000 (14:54 -0700)
commitc92e5e9f3fd217b94060594650141fadd2ec4bd6
treef76c5ff7af3ad2051f090bb52f0a0d570ffd873a
parentd17631f3b7cd138dc2cec79d6e1f1f9f481e0e4d
Update foundation.drilldown.js

If I use one of the visibility classes (http://foundation.zurb.com/sites/docs/visibility.html) to conditionally hide the drilldown, then _getMaxDims() throws an exception during initialization on line 295 when dereferencing the empy this.$menuItems array. That prevent other javascript on the page from executing. This change ensures the array is not empty in such cases, providing of course there are actually li elements in the DOM.
js/foundation.drilldown.js