Bug #5265 » 0001-Fix-animation-queue-to-avoid-dangling-dialogs.patch
| src/js/WWebWidget.js | ||
|---|---|---|
|
? "webkitAnimationEnd": "animationend",
|
||
|
transitionEventEnd = transitionPrefix == "Webkit"
|
||
|
? "webkitTransitionEnd" : "transitionend";
|
||
|
eitherEventEnds = animationEventEnd + " " + transitionEventEnd;
|
||
|
if ($el.css("display") !== display) {
|
||
|
var p = el.parentNode;
|
||
| ... | ... | |
|
}
|
||
|
if ($el.hasClass("animating")) {
|
||
|
$(el).one(transitionEventEnd, function() {
|
||
|
$(el).one(eitherEventEnds, function() {
|
||
|
doAnimateDisplay(id, effects, timing, duration, display);
|
||
|
});
|
||
|
return;
|
||
| ... | ... | |
|
elcStyle);
|
||
|
}
|
||
|
$el.one(transitionEventEnd, function() {
|
||
|
$el.one(eitherEventEnds, function() {
|
||
|
if (hide)
|
||
|
el.style.display = display;
|
||
| ... | ... | |
|
if (effects & Fade)
|
||
|
set(el, { opacity: (hide ? 0 : 1) });
|
||
|
$el.one(transitionEventEnd, function() {
|
||
|
$el.one(eitherEventEnds, function() {
|
||
|
if (hide)
|
||
|
el.style.display = display;
|
||
| ... | ... | |
|
show();
|
||
|
$el.addClass(cl);
|
||
|
$el.one(animationEventEnd, function() {
|
||
|
$el.one(eitherEventEnds, function() {
|
||
|
$el.removeClass(cl);
|
||
|
if (hide)
|
||
|
el.style.display = display;
|
||