ej.Menu.prototype._hideAnimation = function (element, anim) {
switch (anim) {
case "slideUp":
$(element).attr({ "aria-hidden": true });
element.delay(5000).slideUp(this.model.enableAnimation ? 100 : 0);break;
case "none":
element.css("display", "none"); break;
}
element.closest('li').removeClass('e-active e-mfocused');
}; |
ej.Menu.prototype._showAnimation = function (element, anim) {
switch (anim) {
case "slideDown":
element.closest("li").siblings("li").children("ul").css("display", "none");
element.stop(true, true).slideDown(this.model.enableAnimation ? 200 : 0); break;
case "none":
element.css("display", "block"); break;
}
}; |