Learning jQuery Deferreds

Errata for Learning jQuery Deferreds

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
ePub
Chapter 2 > Consuming Promises > Progress

About the .progress() method, it states: $('#something').animate({..., progress: function(){ ... }) is equivalent to: $('#something').animate(...).promise().progress(function(){ ... }) I've tried this and it does not work. Am I doing something wrong or is this statement incorrect? It seems like other people are confused about this too: http://stackoverflow.com/questions/22114493/why-is-this-jquery-promises-progress-callback-not-called-during-animation

Note from the Author or Editor:
Hello. Thanks for taking the time to dig into this and to post here. You are correct, it looks like the book is in error here. It seems that the 'notify' method on the promise is not called at all, so callbacks added via 'progress' are never called. The workaround solution offered by Anup Vasudeva on the StackOverflow page you mention (http://stackoverflow.com/questions/22114493/why-is-this-jquery-promises-progress-callback-not-called-during-animation) is the way we'd also suggest dealing with the problem. Apologies for the inconvenience, and thanks again. I hope you're enjoying the book, despite this error! Terry Jones

Anonymous  Jul 31, 2014