Skip to main content
5 events
when toggle format what by license comment
May 12, 2016 at 3:48 vote accept CKelly-Cook
May 11, 2016 at 8:12 comment added Anders Aune @Col.Cook it should be enough to just add return jQuery.ajax(.. in your _restPeopleSearchQuery function, and return _restPeopleSearchQuery(options); in your peopleSearchQuery function.
May 10, 2016 at 13:34 comment added CKelly-Cook Danny, when use .then() I get Uncaught TypeError: Cannot read property 'then' of undefined What do I need to do to make it return a Promise? can you point me in the right direction
May 10, 2016 at 7:45 comment added Danny '365CSI' Engelman using .then( ) is the correct answer, Note that OPs code does not return Promises in the main function (his main function is an IIFE which returns an object), so he has to fix that to make Promise chaining work
May 9, 2016 at 14:48 history answered Colin CC BY-SA 3.0