You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
incorrect comment about jQuery.ajax returning a Promise #33
This is incorrect. The jQuery API indicates $.getJSON and other low level methods return the jqXHRtype. I think the code in this example should be updated with a modern example. This would avoid the overhead of teaching the potentially confusing history and semantics behind jQuery's request utilities.
Thanks for reporting this. Here's a comment from their api docs,
This jQuery XHR object, or "jqXHR," returned by $.getJSON() implements the Promise interface, giving it all the properties, methods, and behavior of a Promise.
We might have avoided mentioning the jqXHR object to avoid explaining the intricacies of jqXHR when we originally wrote that code block back in 1.x series of the guides.
Closing this issue for now. Please feel free to open a separate issue/PR about modernizing it.
Activity
sivakumar-kailasam commentedon May 10, 2018
Thanks for reporting this. Here's a comment from their api docs,
We might have avoided mentioning the jqXHR object to avoid explaining the intricacies of jqXHR when we originally wrote that code block back in 1.x series of the guides.
Closing this issue for now. Please feel free to open a separate issue/PR about modernizing it.