This method returns the Callbacks object onto which it is attached (this
).
Using callbacks.add()
to add new callbacks to a callback list:
@@ -45,4 +46,4 @@ callbacks.fire( 'world' );
This method returns the Callbacks object onto which it is attached (this
).
Using callbacks.disable()
to disable further calls being made to a callback list:
@@ -31,4 +32,4 @@ callbacks.fire( 'foobar' ); // foobar isn't output
This method returns the Callbacks object onto which it is attached (this
).
Using callbacks.empty()
to empty a list of callbacks:
@@ -35,4 +36,4 @@ console.log( callbacks.has( bar ) ); // false
This method returns the Callbacks object onto which it is attached (this
).
Using callbacks.fire()
to invoke the callbacks in a list with any arguments that have been passed:
@@ -43,4 +44,4 @@ callbacks.fire( 'hello again' );
This method returns the Callbacks object onto which it is attached (this
).
Using callbacks.fireWith()
to fire a list of callbacks with a specific context and an array of arguments:
@@ -35,4 +36,4 @@ callbacks.fireWith( window, ['foo','bar']);
This method returns the Callbacks object onto which it is attached (this
).
callbacks.lock()
to lock a callback list to avoid further changes being made to the list state:
-
This method returns the Callbacks object onto which it is attached (this
).
callbacks.remove()
to remove callbacks from a callback list:
-