rapila / cms-base

The rapila cms’ internals. Please file all issues here if they’re not directly related to a plugin or the sample site.
http://www.rapi.la
3 stars 1 forks source link

Silently transform all callbacks to jQuery.Deferred by default #40

Open sabberworm opened 13 years ago

sabberworm commented 13 years ago

Major change requiring all callbacks-passers to be modified if they want to handle the exception case. Exception type handlers will always be called unless WidgetJSONOptions.callback_handles_error.

sabberworm commented 13 years ago

Thinking a little bit about this, it would even make sense to deprecate passing any sort of callback to widgetJSON() entirely, always returning a .promise(), even for synchronous calls (thus recommending against them a little further).