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
Extended DefineList.concat method throws error in a component viewmodel #95
Comments
@roemhildtg I think this is a bug and have a PR in to fix it. Until that gets in, you can also make this work by using a static
to
I think the way you did it originally is the correct way since it is what is shown in the docs, but just wanted to give you this option in case this is blocking you. |
@phillipskevin sounds good. Thanks for the workaround/fix |
@roemhildtg the bug here is that |
@roemhildtg the fix is released as can-define 1.0.5. |
http://jsbin.com/saqobubevu/edit?html,js,console,output
If I create a new list type that has
'#': DefineMapType
, and I use that list type in a view model of a component, the error is thrown. It looks like it might be a bug, but I've been wrong before on this, so bear with me :)https://github.com/canjs/can-define/blob/master/list/list.js#L23
Basically, this is what the jsbin looks like:
The text was updated successfully, but these errors were encountered: