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
I experienced the same problem with .add() method and came to the same solution as offered by MixailE.
The defaultOpts should by left untouched as they are "global" for the whole plugin.
Has anybody found any side-effects after such change?
It seams that defaultOpts are only used once in the script, so, there nothing wrong is expected.
And why on earth the defaultOpts are exposed at the end of the script? #390 Resource.defaults = defaultOpts;
I have created the Ajax option and passed to client method
var restAjaxOptions =
{
success : function(jqXHR, textStatus, errorThrown)
{
},
error : function(jqXHR, textStatus, errorThrown)
{
alert(textStatus);
}
};
client.add('postData', {
ajax : restAjaxOptions
});
but the ajax option also got updated for all other methods.
client.add('users'); // the ajax option reflected for this method also even though it is doesn't have any ajax options
Please let us know how to put the ajax option specific to one method alone
The text was updated successfully, but these errors were encountered: