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

Error when using DSProvider.defaults #4

Open
auser opened this issue Sep 12, 2014 · 1 comment
Open

Error when using DSProvider.defaults #4

auser opened this issue Sep 12, 2014 · 1 comment

Comments

@auser
Copy link
Contributor

auser commented Sep 12, 2014

We're getting an error when using DSProvider.defaults in our app with the error:

TypeError: Cannot set property 'deserialize' of undefined for the line:

DSProvider.defaults.deserialize = function (resourceName, data) {
    // extract data from custom payload format
    if (data && data.data) {
       return data.data[resourceName] ? data.data[resourceName] : data.data;
    } else{
        return data;
    }
  };
@jmdobry
Copy link
Member

jmdobry commented Sep 12, 2014

What version are you using?

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

No branches or pull requests

2 participants