Opened 9 years ago

Last modified 5 years ago

#5320 open bug

Can't realy clear queue after Blind effect

Reported by: betalb Owned by:
Priority: minor Milestone: none
Component: ui.effects.* (individual effect) Version: 1.8rc3
Keywords: Cc:
Blocked by: Blocking:


If I start blind effect, and in the middle call stop(true, true) next effect will start anyway

here is a sample code

<!DOCTYPE html>
		<style type="text/css"> #element { background: green; } </style>
		<script type="text/javascript" src=""></script>
		<script type="text/javascript" src="jquery-ui.js"></script>
		<script type="text/javascript">
			$(function () {
				$('#btn1').click(function (event) {
						.effect('blind', {
							duration: 3000,
							mode: 'show',
							complete: function () {
								console.log('Blind completed');
						.effect('highlight', {
							duration: 3000,
							complete: function () {
								console.log('Highlight completed');

					setTimeout(function () {
						console.log('timeout fired');
						$('#container *:animated').stop(true, true);
						console.log('effects stopped');
						console.log('html changed');
					}, 1500);
		<button id="btn1">1</button>
		<div id="container"><div id="element">123<br>321</div></div>

and output

timeout fired
Blind completed
effects stopped
html changed
Highlight completed

Change History (7)

comment:1 Changed 9 years ago by Scott González


comment:2 Changed 8 years ago by Corey Frang

Status: newopen

comment:3 Changed 6 years ago by Scott González

Milestone: 1.next1.10.0

comment:4 Changed 6 years ago by mikesherov

still present on latest:

comment:5 Changed 6 years ago by Corey Frang


There is no "good" way to fix this until jQuery Core 1.7 is our minimum - at that point I get queue hooks for stop. Punting to 1.11 in case we update the minimum version.

comment:6 Changed 6 years ago by Scott González

Can we just feature detect on the hook and use it if it exists? We'll be broken in 1.6.x, but working in 1.7+. That at least seems better than waiting for months to act on it. I'd be ok with closing as fixed even if it's only fixed in jQuery 1.7+.

comment:7 Changed 5 years ago by Scott González

Milestone: 1.11.0none
Note: See TracTickets for help on using tickets.