Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an error callback just like regular Backbone/jQuery deferred objects would. #16

Open
ksze opened this issue May 21, 2013 · 1 comment
Assignees
Labels

Comments

@ksze
Copy link

ksze commented May 21, 2013

Is it possible to make the Rpc call use an error callback by passing the JSON-RPC error response to it? Like this:

user.checkLoggedIn({
    success: function(model response){
        // do something
    },
    error: function(model, exception){
        alert(exception.message);
    },
});

Where user is an instance of a Backbone model and checkLoggedIn is one of the RPC methods.

@ghost ghost assigned asciidisco Oct 30, 2013
@asciidisco
Copy link
Owner

I do not develop this plugin anymore, but if you can get in a PR, I´m happy to merge it & to release a new version with the addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants