Cuando se está utilizando una platnilla basada en JA Purity II, y se hace el mouseout de un menu desplegable en un Menu Mega se produce un error Javascript:
li.hasClass is not a function
if (li.hasClass ('haschild-over'))
Line 463: if (li.hasClass ('haschild-over'))
La solución para este error es la siguiente:
and the other file you care about is
- - - - - - - - - - - - - - - -
Localizar en templates/PLANTILLA/js/menu/mega.js
línea 236:
if (li.childcontent) li.timer = setTimeout(this.itemHide.bind(this, [li, e]), this.options.delayHide);
Cambiar a esto: (quitar los corchetes de "li, e")
if (li.childcontent) li.timer = setTimeout(this.itemHide.bind(this, li, e), this.options.delayHide);
Hope it helps))
Just noticed it works es expected only in Chrome. In other browsers it doesn't animate when hiding. It seems browsers treat differently the use of square brackets. FF, Opera and others take [li, e] as corresponding arguments for itemHide, while Chrome treats [li, e] as one argument, which causes li.hasClass to fail in itemHide.