These are chat archives for ractivejs/ractive

2nd
Feb 2018
Joseph
@fskreuz
Feb 02 2018 00:53
Anyone against replacing Phantom with Chrome Headless, speak now or forever hold your peace. :D
ractivejs/ractive#3188
Chris Reeves
@evs-chris
Feb 02 2018 00:56
my dev machine has no chrome
does headless pull in an appropriate local bin?
(I have chromium for linux-y not-mainstream-distro reasons)
Not sure about non-mainstream linux tho. I've only tried it on Windows and Mac. Travis is Linux, so probably (although it is Ubuntu so ymmv).
Chris Reeves
@evs-chris
Feb 02 2018 01:01
not a weird arch or anything, I mean it's not like I'm sailing the itanic
and phantom pre-built npm modules work, so there's that
can it replace our electron usage too?
Joseph
@fskreuz
Feb 02 2018 01:04
For Node tests, thinking of replacing electron with the official QUnit cli. It's pretty good so far (using it in the monorepo experiment for loader testing).
But that's for another time. :D
Chris Reeves
@evs-chris
Feb 02 2018 01:07
yep, just verified it pulls down a build of chromium when I npm install puppeteer
Joseph
@fskreuz
Feb 02 2018 01:07
:tada:
Chris Reeves
@evs-chris
Feb 02 2018 01:08
but that means all of our /phantom/i.test(navigator.userAgent) stuff becomes a code smell :laughing:
Joseph
@fskreuz
Feb 02 2018 01:08
Oh snap :scream_cat:
Chris Reeves
@evs-chris
Feb 02 2018 01:09
seems like there's one in every third test file
Joseph
@fskreuz
Feb 02 2018 01:10
If they're all "if not phantom, then run", they're passing in Chrome. :D
Chris Reeves
@evs-chris
Feb 02 2018 01:11
indeed
Joseph
@fskreuz
Feb 02 2018 01:11
does some quick housekeeping
Chris Reeves
@evs-chris
Feb 02 2018 01:11
there's still ie though :smile:
Joseph
@fskreuz
Feb 02 2018 01:12
:scream_cat:
When will that browser ever go away?! :D
Chris Reeves
@evs-chris
Feb 02 2018 01:15
when windows 12 comes out? I saw somebody using vista the other day...
If I'da had a boring flamethrower (aka blowtorch), I could've killed it with fire
:fire:
Joseph
@fskreuz
Feb 02 2018 01:15
Hahaha
Joseph
@fskreuz
Feb 02 2018 01:21
try {
  fire( div, 'blur' );
  t.equal( ractive.get( 'value' ), 'foo' );
} catch ( err ) {
  t.ok( true ); // phantomjs ಠ_ಠ
}
:laughing:
Joseph
@fskreuz
Feb 02 2018 01:49
All tests pass in IE11 except one (the one named blur events delegate correctly). The fun part is it's not a test that was in a PJS/IE guard.
Edge looks good
Chris Reeves
@evs-chris
Feb 02 2018 05:50
webpack + typescript + ractive components (in typescript) is a real barrel of monkeys on amphetamines
if you're not holding your mouth just right and carrying a riot shield, it'll either fall apart or the monkeys'll get you
Paul Maly
@PaulMaly_twitter
Feb 02 2018 11:31
how to lift the correct context up?
<child on-something="something" />
in parent's something I have not the same ctx as inside <child/> component handler
child.on('something', (ctx) => ctx.get('something')); // => value
parent.on('something', (ctx) => ctx.get('something')); // => undefined
Joseph
@fskreuz
Feb 02 2018 13:15

if you're not holding your mouth just right and carrying a riot shield, it'll either fall apart or the monkeys'll get you

Monkeys get you either way. :tada:

Joseph
@fskreuz
Feb 02 2018 13:45
@PaulMaly_twitter can you provide a demo in playground?
Arnaud Dagnelies
@dagnelies
Feb 02 2018 17:12
Hi @fskreuz , I didn't find last time's ticket about the demos/examples, but I made a tiny one to start with
anyone is welcome to contribute
moreover, I've added a mini-editor to tinker with demos
Chris Reeves
@evs-chris
Feb 02 2018 17:16
neat!
oooh
if you switch files in the editor, you get inception
Arnaud Dagnelies
@dagnelies
Feb 02 2018 17:21
indeed, it's just an iframe ;)
well, I'm heading off for home now to my well deserved WE
see ya
Chris Reeves
@evs-chris
Feb 02 2018 17:27
enjoy your weekend!
Arnaud Dagnelies
@dagnelies
Feb 02 2018 17:28
you too!
Joseph
@fskreuz
Feb 02 2018 17:28
@dagnelies nice :thumbsup:
Arnaud Dagnelies
@dagnelies
Feb 02 2018 17:28
thanks
we need to promote Ractive a little bit after all ;)
Joseph
@fskreuz
Feb 02 2018 18:11
Wondering if we could move these examples over to playground. This way, we can improve playground at the same time, build examples.
Two birds, one shotgun deal.
kouts
@kouts
Feb 02 2018 19:45
Question: Has anyone used animationend with on- ?
it seems that this is not firing in IE11
could this be a bug?
Chris Reeves
@evs-chris
Feb 02 2018 19:46
I've not tried it, but I seem to recall there being some weirdness with that particular event
like it doesn't bubble, or only bubbles in specific circumstances, or something like that
kouts
@kouts
Feb 02 2018 19:47
ok I'll try attaching it manually
to see how it goes