Skip to content

Backbone.Subset does not correctly extend Backbone.Collection #14

@nthsense

Description

@nthsense

If you create a new instance of a Backbone.Subset, it does not act as an instance of a Backbone.Collection:

!(mySubset instanceof Backbone.Collection) === true

This is a problem because it means you can't always substitute a Subset for a Collection. Knockback, for instance, can't make a collectionObservable around a Subset because it does an instanceof safety check.

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