Skip to content

Inconsistent results when extending parsed can.Models #1272

Closed
@alexkrautmann

Description

@alexkrautmann

I've noticed the following issues when extending a can.Model:

  • When a parent Model defines can.Model.models, a child Model.findAll calls the success callback with a undefined list
  • When a parent Model defines can.Model.parseModel, a child Model.findAll calls the success callback with a list of unparsed model objects
  • When a parent Model defines can.Model.parseModels, a child Model.findAll calls the error callback with Error: Could not get any raw data while converting using .models

This seems similiar to #1246

Fiddle here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions