These are chat archives for ractivejs/ractive

9th
Oct 2018
Simon Layfield
@simonlayfield
Oct 09 2018 16:16
Just returning to ractive after a while...is there a reason oncomplete: function() {} wouldn't work?
Chris Reeves
@evs-chris
Oct 09 2018 16:18
if there are no console errors, it should fire, unless there's a transition that never completes
Simon Layfield
@simonlayfield
Oct 09 2018 16:19
Hmm kay
Doesn't seem to run for me
Bummer. I'll take a closer look. Thanks.
Chris Reeves
@evs-chris
Oct 09 2018 16:24
is it in an extend or an init param? if you pass one in as an init param and don't call super, any extended ones won't fire, but I think it warns about that
Simon Layfield
@simonlayfield
Oct 09 2018 16:30
init param
It's ok, it's some old stuff I'm refactoring so I'll tidy up a bit and see if I can fix it
Is oncomplete the best place to put an observer if I don't want it to fire on init?
Chris Reeves
@evs-chris
Oct 09 2018 17:00
best place would be the observe init param in the object form with init: false
Simon Layfield
@simonlayfield
Oct 09 2018 17:11
Ah yes thanks. Sorry.
Chris Reeves
@evs-chris
Oct 09 2018 17:13
Glad I could help 😁