callbacks.disabled() tells you whether a Callbacks list has been disabled (since jQuery 1.7). The official API: determine if the callbacks list has been disabled. It returns a boolean and does not change the list.
Syntax
Start with these common calls. Keep them short and readable.
jQuery
callbacks.disabled() → false (fresh list)
callbacks.disable()
callbacks.disabled() → true
// Read-only — does NOT call disable()
// No enable() exists
Call
What it does
Callbacks object
List to inspect
Arguments
disabled() takes no parameters
Return
true or false (Boolean)
Load jQuery before your script (CDN or local file), then wrap DOM work in $(function () { ... }) when needed.
Parameters
Parameter
Description
Step 1
Create and use a Callbacks list as usual.
Step 2
Call disable() when the feature ends (teardown).
Step 3
Read status with disabled() — true means shut down.
Return Value
Return Value
Description
Boolean
Often true or false depending on the match or state.
jQuery Examples
Example 1 — New List Returns false
A freshly created list is active until you call disable().
disabled() is a read-only status check. It returns true if disable() was called on the list, otherwise false. It does not disable anything itself — use disable() for the action.
disable() is the verb — it permanently shuts down the list. disabled() is the question — "is this list shut down?" It returns a boolean and leaves the list unchanged.
On a freshly created $.Callbacks() list, and on any list that has never had disable() called. Active lists that still accept fire() return false.
No. disabled() only reads state. jQuery provides no enable() method. Once disable() runs, disabled() stays true forever for that list object.
fire() on a disabled list is already a safe no-op, but checking disabled() first can avoid pointless calls and produce clearer logs in shared utilities or plugin code.
disabled() reflects whether disable() was called. locked() reflects whether lock() was called — a different state. A list can be locked but not disabled, or disabled but not locked.