Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.
This repository was archived by the owner on Jul 7, 2026. It is now read-only.

Cannot read property 0 of undefined #71

Description

@justinmakaila

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions