mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
jQuery: JSDoc Callbacks and tighten up typing
This commit is contained in:
@@ -668,6 +668,11 @@ function test_callbacksFunctions() {
|
||||
callbacks.add(bar);
|
||||
callbacks.fire('world');
|
||||
callbacks.disable();
|
||||
|
||||
// Test the disabled state of the list
|
||||
console.log(callbacks.disabled());
|
||||
// Outputs: true
|
||||
|
||||
callbacks.empty();
|
||||
callbacks.fire('hello');
|
||||
console.log(callbacks.fired());
|
||||
|
||||
Reference in New Issue
Block a user