These are chat archives for canjs/canjs

3rd
Sep 2015
Guido Smeets
@gsmeets
Sep 03 2015 14:04
@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
Chris Gomez
@akagomez
Sep 03 2015 14:05
Eek!
Do you have a test written? If you do, submit a PR and we can bisect the issue.
Thanks for digging into that.
Guido Smeets
@gsmeets
Sep 03 2015 14:09
I'll write a test this evening (CEST+1)
Guido Smeets
@gsmeets
Sep 03 2015 14:24
I've also found the root cause now
bitovi/canjs@e9450fa
Chris Gomez
@akagomez
Sep 03 2015 14:48
Beautiful! That will help.
Guido Smeets
@gsmeets
Sep 03 2015 14:55
The solution is a one-liner :), I'll create a PR
Chris Gomez
@akagomez
Sep 03 2015 15:30
@gsmeets Cool! Link it here when you do.
Matthew Phillips
@matthewp
Sep 03 2015 16:09
@tracer99 will that work with inherited properties?
Terry
@tmcdonnell87
Sep 03 2015 16:10
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?
Chris Gomez
@akagomez
Sep 03 2015 16:17
@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.
Terry
@tmcdonnell87
Sep 03 2015 16:34
sweet, I'll take a look
It doesn't seem that done has been updated in a couple years - is it actively maintained?
Chris Gomez
@akagomez
Sep 03 2015 16:38
@tmcdonnell87 Are you referring to the repo?
I don’t think that’s the codebase that backs http://donejs.com
I should had been clear, DoneJS is currently in an alpha/beta state.
(not sure which unfortunately)
To that point it’s primarly made up of CanJS/StealJS/DocumentJS and all of those are actively maintained.
Terry
@tmcdonnell87
Sep 03 2015 16:41
ah, found the repo from npm
David Luecke
@daffl
Sep 03 2015 16:50
@tmcdonnell87 The repository is at https://github.com/donejs/donejs. Working on cleaning that up a little. If you are only looking for server side rendering you also might want to have a look at the CanJS minor branch and https://github.com/canjs/can-ssr
Terry
@tmcdonnell87
Sep 03 2015 16:57
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)
David Luecke
@daffl
Sep 03 2015 17:30
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
Paul Tichonczuk
@tracer99
Sep 03 2015 17:45
@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.