These are chat archives for canjs/canjs

13th
Nov 2018
nmingneau
@nmingneau
Nov 13 2018 08:58
Hi, this codepen gives a different result in edge compared to other browsers. https://codepen.io/nmingneau/pen/PxWPLm?editors=1010
nmingneau
@nmingneau
Nov 13 2018 11:14
Can.construct also seems to be looping through init and newInstance long after rendering seems to be complete for my project. This is not the case in chrome, firefox or safari.
Andrei Balmus
@abalmush
Nov 13 2018 12:39
hi guys can someone help me with can-migrate? for some reasons html files are not updated for example: {product}=“dataProduct” needs to be change to product:bind=“dataProduct” but it’s still the old one
I’m runningthis command can-migrate -a src/**/*.{js,md,html,stache,component} -t can-stache-bindings/
Kevin Phillips
@phillipskevin
Nov 13 2018 14:29
you need to wrap your glob patterns in quotes @abalmush
otherwise bash will automatically try to expand them before passing them to can-migrate
Andrei Balmus
@abalmush
Nov 13 2018 14:37
ah ok thank you very much!
Andrei Balmus
@abalmush
Nov 13 2018 15:35
@phillipskevin sorry to bother you again. Do you know if ther are any codemods that fix Controls events. Before in CanJs2 I used something like this: ':input:not(:button) focusout': 'onFocusoutEventHandler’, in my Controls to exclude buttons, but now it looks like it is not working and I need to fix it somehow
Kevin Phillips
@phillipskevin
Nov 13 2018 15:36
does it work if you do '{element} :input:not(:button) focusout'?
Andrei Balmus
@abalmush
Nov 13 2018 15:36
let me check
Andrei Balmus
@abalmush
Nov 13 2018 15:43
no luck, I’m trying to debug it and it still shows :input:not(:button) without {element}
Screen Shot 2018-11-13 at 5.43.01 PM.png
node_modules/can-dom-events/helpers/-make-delegate-event-tree.js - line 31
Kevin Phillips
@phillipskevin
Nov 13 2018 15:58
is the {element} inside your quotes?
I messed it up when I typed it originally
Andrei Balmus
@abalmush
Nov 13 2018 16:03
yes it is inside and I think this is because of jquery is not a part of canjs anymore, so the selectors I used worked with jQuery but they are not working in document.querySelector I will try using vanilla queries that works in document.querySelector
Kevin Phillips
@phillipskevin
Nov 13 2018 16:03
oh, yeah, good catch
Andrei Balmus
@abalmush
Nov 13 2018 16:03
for example '{element} [type="checkbox"] change’: onCheckboxChanged worked ok