@matthewp you were 100% correct on the lack of use of hasOwnProperty adding that in three places was the only fix
@akagomez the issue seems to be worse than I thought, in canjs 2.2.7 no component's destroy method is called when removed from the DOM. in 2.2.6 it works fine
Do you have a test written? If you do, submit a PR and we can bisect the issue.
Thanks for digging into that.
I'll write a test this evening (CEST+1)
I've also found the root cause now
Beautiful! That will help.
The solution is a one-liner :), I'll create a PR
@gsmeets Cool! Link it here when you do.
@tracer99 will that work with inherited properties?
Hi - I'm wondering if can.js models can be used in a node.js environment. (I haven't found anything solid online either way.) We'd like to do some server-side orchestration - think collecting order data from various different services - and it would be great to re-use code. However, it doesn't seem to be as straightforward as I hoped, as steal is throwing some errors trying to pull in can. Is there an example somewhere in the docs, or is this a bad idea in general?
@tmcdonnell87 We recently started a project for dealing with this exact scenario. Check it out: http://donejs.com/
One of the beautiful aspects of the DoneJS project is that you can re-use ALL of your code on client and server (templates, components, models, etc)
@justinbmeyer@daffl and @matthewp can speak more to it if you have specific questions.
sweet, I'll take a look
It doesn't seem that done has been updated in a couple years - is it actively maintained?
we'd want both. we currently have a can.js project that's a pure-client webapp, and we're looking to add some server-side orchestration. When you say donejs is in alpha/beta, which parts are you talking about? (Canjs, steal, etc. are all released)
DoneJS is the combination of CanJS + Steal + DocumentJS + FuncUnit and some other glue projects. CanJS 2.3 - which adds support for server-side rendering - is due around the end of the month. There are alpha releases for DoneJS and beta for can-ssr
@matthewp I'm not clear on the question. In what circumstance would we care about a map inheriting? The event one might be an issue however.
Can anyone tell me what is the use of ' ! ' in defining the routes?
Where is it documented that you should use “!” to define routes?
@akagomez a bit later than I wanted to, but here is that fix for the component's destroy method: bitovi/canjs#1886
for can.components sometimes is stated that we should use the 'scope' object
and other times 'viewModel'
viewModel is more explicit and understandable. Is it obsolete to use it?
Mohamed Cherif Bouchelaghem
can.view.tag has not it's own scope!! is there way to make this happened without using component?
@kiwi1342 scope will be deprecated in 3.0, use viewModel instead
Wow. Good to know thx. One small suggestion: please work on canjs documentation. Canjs has great chances to compete with other more notorious frameworks such as backbone, knockout, react/flux. It has clear