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

can.Model.List should extend an existing List #736

Closed
daffl opened this Issue Feb 11, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@daffl
Contributor

daffl commented Feb 11, 2014

When extending an existing Model (that might have its own can.Model.List) the Model.List property is always overwritten with a basic can.Model.List (see https://github.com/bitovi/canjs/blob/master/model/model.js#L904).

This way it is never possible to use your own Model.List construct from the parent in an extended Model (or even your own list implementation at all):
http://jsfiddle.net/F2wPe/4/

Instead it should extend an existing list if it is available.

VOTE HERE: http://bithub.com/event/29585

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