New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-fire Callbacks report as initially locked #1989

Closed
gibson042 opened this Issue Jan 4, 2015 · 0 comments

Comments

Projects
None yet
3 participants
@gibson042
Member

gibson042 commented Jan 4, 2015

http://jsfiddle.net/2d9gwd2c/

Note how the "once" flag breaks .locked().

In code, this assertion fails:

equal( jQuery.Callbacks("once").locked(), false );

@gibson042 gibson042 added the Callbacks label Jan 4, 2015

@gibson042 gibson042 self-assigned this Jan 4, 2015

@dmethvin dmethvin added this to the 3.0.0 milestone Jan 5, 2015

gibson042 added a commit that referenced this issue Jan 11, 2015

@gibson042 gibson042 closed this in 0d829f0 Jan 11, 2015

@markelog markelog added the Bug label Nov 10, 2015

gibson042 added a commit that referenced this issue Nov 10, 2015

Callbacks: No object starts out locked
Fixes gh-1989

(cherry picked from commit f5a8c64)

@dmethvin dmethvin modified the milestones: 1.12/2.2, 3.0.0 Jan 7, 2016

@cssmagic cssmagic referenced this issue May 18, 2016

Open

jQuery #5

@lock lock bot locked as resolved and limited conversation to collaborators Jun 19, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.