I'm a little confused about what you're trying to do overall. If you're just wanting to block an action until all refresh events have completed you could create a variable to watch the active events. If I'm not understanding correctly, try to clarify and I'll look back at it. Here is a jsbin with a possible implementation
↧