Added stopOnFalse method description in comments and reformatted then in the process.

1.7/callbacks
jaubourg 2011-05-07 00:23:00 +02:00
parent a31195fd5a
commit 5ee68d6b13
1 changed files with 8 additions and 6 deletions

View File

@ -28,15 +28,17 @@ function createFlags( flags ) {
*
* Possible flags:
*
* once: will ensure the callback list can only be fired once (like a Deferred)
* once: will ensure the callback list can only be fired once (like a Deferred)
*
* memory: will keep track of previous values and will call any callback added
* after the list has been fired right away with the latest "memorized"
* values (like a Deferred)
* memory: will keep track of previous values and will call any callback added
* after the list has been fired right away with the latest "memorized"
* values (like a Deferred)
*
* unique: will ensure a callback can only be added once (no duplicate in the list)
* unique: will ensure a callback can only be added once (no duplicate in the list)
*
* relocate: like "unique" but will relocate the callback at the end of the list
* relocate: like "unique" but will relocate the callback at the end of the list
*
* stopOnFalse: interrupt callings when a callback returns false
*
*/
jQuery.Callbacks = function( flags, filter ) {