Commit graph

10 commits

Author SHA1 Message Date
jaubourg 13c330a0f8 $.Callbacks.remove now accepts multiple parameters (Unit test amended). Changed the variable name of the main object from "object" to "self" as per rwaldron's suggestions. 2011-05-26 18:44:17 +01:00
jaubourg 4f3f0e1d4e Fixes repeatable callbacks list with memory disabling. Unit tests for Deferreds updated. 2011-05-26 18:44:12 +01:00
jaubourg 05ae8f37b8 Makes sure repeatable lists with memory are properly locked. 2011-05-26 18:44:08 +01:00
jaubourg ebb39c2774 Ensures a list with memory will not called further callbacks before the next fire/fireWith is in stopOnFalse mode and a callback returned false. Unit tests added. 2011-05-26 18:44:06 +01:00
jaubourg 8dcf7ec1ce Adds addAfterFire flag. Unit tests updated with addAfterFire cases and also for when a callback returns false. 2011-05-26 18:44:05 +01:00
jaubourg 946a9204a1 Adds disabled and locked. Simplifies logic in fireWith. 2011-05-26 18:44:03 +01:00
jaubourg 198290a9a7 Simplifies how removal when firing is handled. Removes exception handling (lets the list deadlock). Makes sure no external code can fire the list from a given index (only possible internally). 2011-05-26 18:44:00 +01:00
jaubourg 03c4fe9da9 Fixes for bugs found thanks to unit tests. 2011-05-26 18:43:59 +01:00
jaubourg 5ee68d6b13 Added stopOnFalse method description in comments and reformatted then in the process. 2011-05-26 18:43:56 +01:00
jaubourg a31195fd5a Replaces jQuery._Deferred with the much more flexible (and public) jQuery.Callbacks. Hopefully, jQuery.Callbacks can be used as a base for all callback lists needs in jQuery. Also adds progress callbacks to Deferreds (handled in jQuery.when too). Needs more unit tests. 2011-05-26 18:43:55 +01:00