{"name":"callbacks.fired","type":"method","title":"callbacks.fired()","deprecated":null,"removed":null,"desc":"Determine if the callbacks have already been called at least once.","categories":["callbacks-object","version/1.7"],"entries":[{"return":"Boolean","signatures":{"added":"1.7"},"examples":{"desc":"Use callbacks.fired() to determine if the callbacks in a list have been called at least once:","code":"\n// A sample logging function to be added to a callbacks list\nvar foo = function( value ) {\n console.log( \"foo:\" + value );\n};\n\nvar callbacks = $.Callbacks();\n\n// Add the function \"foo\" to the list\ncallbacks.add( foo );\n\n// Fire the items on the list\ncallbacks.fire( \"hello\" ); // Outputs: \"foo: hello\"\ncallbacks.fire( \"world\" ); // Outputs: \"foo: world\"\n\n// Test to establish if the callbacks have been called\nconsole.log( callbacks.fired() );\n"},"longdesc":""}]}