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

Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefined #107

Open
ramontayag opened this issue Apr 14, 2012 · 0 comments
Open

Comments

@ramontayag
Copy link

I'm new to backbone, but this doesn't look like it should be happening. I have a session model:

class OLBT.Models.Session extends Backbone.Model
  name: 'model'
  urlRoot: 'devise/sessions'
  defaults:
    sessionId: ''
    userId: ''
    email: ''

When I create a new model, session = new OLBT.Models.Session(), I get this error: Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefined. Looks like maybeUnwrap is choking when no args are passed in. Not sure what this does yet, but checking if typeof(args) != 'undefined' before continuing fixes it.

Am I doing something wrong, or is this a valid issue?

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

1 participant