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

Cannot read property 0 of undefined #71

Open
justinmakaila opened this issue Nov 14, 2012 · 0 comments
Open

Cannot read property 0 of undefined #71

justinmakaila opened this issue Nov 14, 2012 · 0 comments

Comments

@justinmakaila
Copy link

This is an extension of the issue I already opened, #70. If I copy the Backbone.NestedModel.extend({...}) in the linked issue, and paste it after
var other = (pasted code), a new model object is created with no issues. If i do

>other.set({'Date.StartTime': 'never'})

I get:

  TypeError: Cannot read property '0' of undefined
  arguments: Array[2]
    0: 0
    1: undefined
    length: 2
    __proto__: Array[0]
get message: function () { [native code] }
get stack: function () { [native code] }
set message: function () { [native code] }
set stack: function () { [native code] }
type: "non_object_property_load"
__proto__: Error

If i do the same exact >other.set({'Date.StartTime': 'never'}) command immediately after, it works fine. This is obviously creating issues where I set attributes in code where I don't have the option to run the block again.

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