These are chat archives for canjs/canjs

27th
May 2015
Justin Meyer
@justinbmeyer
May 27 2015 16:42
@akagomez we've wanted that for ever. +1. Please create an issue
Chris Gomez
@akagomez
May 27 2015 16:42
@justinbmeyer You mean can.batch.debounce?
bitovi/canjs#1708
Justin Meyer
@justinbmeyer
May 27 2015 16:43
You'll probably want a prototype version
which will be tricker to make
personally, I've wanted to do it with a special way to bind events
Chris Gomez
@akagomez
May 27 2015 16:45
I vaguelly remember that. I may not be getting the whole picture though, since all events can be batched.
We should chat about it regardless.
Justin Meyer
@justinbmeyer
May 27 2015 16:47
yeah, and we should talk about where / how you are using it
b/c you really shouldn't need it anymore
or extremely rarely
Chris Gomez
@akagomez
May 27 2015 18:13
@justinbmeyer @daffl Since we have can.batch.batchNum now (for the sake of live bindings), should we now populate the event objects with the batchNum from can.batch.batchNum created here: https://github.com/bitovi/canjs/blob/master/util/jquery/jquery.js#L16-L20 and here: https://github.com/bitovi/canjs/blob/master/event/event.js#L241-L245
Because if not, things like this don’t get a batchNum: can.trigger(this, 'length', [this.length]);
Justin Meyer
@justinbmeyer
May 27 2015 20:40
@akagomez yt?
can.batch.batchNum isn't used by live bindings anymore
afaik
can.batch.afterPrevious
should be used
Chris Gomez
@akagomez
May 27 2015 20:40
Oh. Well that was short lived. Or am I imagining things?
Justin Meyer
@justinbmeyer
May 27 2015 20:40
it was short lived
afterPrevious
Chris Gomez
@akagomez
May 27 2015 20:41
I’ll look into it. Thanks.
Justin Meyer
@justinbmeyer
May 27 2015 20:41
is way better