jQuery: JSDoc Callbacks and tighten up typing

This commit is contained in:
John Reilly
2014-01-21 13:38:58 +00:00
parent daca31dc77
commit 0d8bdec36e
2 changed files with 89 additions and 14 deletions
+5
View File
@@ -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());