developerforce / Force.com-JavaScript-REST-Toolkit

ForceTK - a minimal Force.com REST API for JavaScript apps
BSD 3-Clause "New" or "Revised" License
315 stars 175 forks source link

Return promises from RemoteTK for compatibility with ForceTK #31

Open cwarden opened 11 years ago

cwarden commented 11 years ago

Return a promise from each RemoteTK function for compatibility with ForceTK. Passing a callback is now optional as callbacks can be attached to the promise returned instead.

Uses jQuery's Deferred promise implementation so jQuery must be loaded and available as $.