These are chat archives for canjs/canjs

11th
Jan 2017
seasoup
@seasoup
Jan 11 2017 00:39
using can 3, I have a define map passed into a template and am showing some html based on the value of one of the attributes (page), how can I update the define map so that the template changes
var data = new DefineMap({
body: "BODY",
page: "event-group"
});
document.body.appendChild(template(data));
data.page = newVal;
the last line doesn't update the template
Gira Minus
@gKreator
Jan 11 2017 00:53
Can you make a jsbin?
seasoup
@seasoup
Jan 11 2017 01:39
got it working, thanks!
Gira Minus
@gKreator
Jan 11 2017 05:46
Is there a way to prevent canJs stache {{#each}} only re-render the item that is updated and not all of them?
Is there a way to make canJs stache {{#each}} only re-render the item that is updated and not all of the items?**
while using a filter*
Gira Minus
@gKreator
Jan 11 2017 05:52
actually it seems to be caused by sort*
Gira Minus
@gKreator
Jan 11 2017 06:07
nvm fixed it, dumb logic :/
Gira Minus
@gKreator
Jan 11 2017 06:50
I'm wondering can you have an object inside a DefineMap that is "serialized"
or more like the get/set methods dont get wrapped around it
blob
define-helpers seems to get tripped up by FormData in certain situations
Gira Minus
@gKreator
Jan 11 2017 06:55
ok so the issue is something to do with sorting a DefineList that has an object that has a FormData
Gira Minus
@gKreator
Jan 11 2017 07:04
ok i guess wrapping it in a function kinda fixes it
Andrei Balmus
@abalmush
Jan 11 2017 11:24
Hi guys whya all demos on https://v2.canjs.com are broken :(
Kevin Phillips
@phillipskevin
Jan 11 2017 15:15
here is the issue: canjs/canjs#2941
there is a PR in to fix it, I’ll see if we can get that in today
the issue is just that they are http:// urls
so don’t work on our https page
Kevin Phillips
@phillipskevin
Jan 11 2017 17:58
@abalmush the demos should be fixed now
if you see any that are broken, please open an issue
or let us know here
Andrei Balmus
@abalmush
Jan 11 2017 20:17
@phillipskevin thank you very much for fixing it!!