YouTip LogoYouTip

Misc Callbacks Fired

# jQuery callbacks.fired() Method [![Image 3: jQuery Misc Methods](#)jQuery Misc Methods](#) ## Example Determine if the callback has been called at least once $(function(){// A simple function to be added to the list var foo = function(value){alert("foo:" + value); }; var callbacks = $.Callbacks(); // Add function "foo" to the list callbacks.add(foo); // Fire all callbacks in the list with parameters callbacks.fire("hello"); // Output: "foo: hello"callbacks.fire("world"); // Output: "foo: world" // Test if the callback list has been called at least once alert(callbacks.fired()); }) [Try it Β»](#) * * * ## Definition and Usage The callbacks.fired() function determines if the callback has been called at least once. * * * ## Syntax This method does not accept any parameters. callbacks.fired() * * jQuery Misc Methods](#)
← Misc Callbacks LockedMisc Callbacks Disable β†’