Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Implement on.once and on.pausable #37

Closed
kfranqueiro opened this issue Jun 12, 2015 · 0 comments
Closed

Implement on.once and on.pausable #37

kfranqueiro opened this issue Jun 12, 2015 · 0 comments
Assignees
Milestone

Comments

@kfranqueiro
Copy link
Member

We've had a few discussions back and forth on this topic (largely connected to the discussion around extension events), and I did some fumbling around myself.

Ultimately, we have decided to implement once and pausable APIs largely as they existed in Dojo 1.x (though they would be implemented as separate exports of the on module in this case).

  • They will accept the same arguments as on
  • once will return an object implementing Handle
  • pausable will return an object implementing a PausableHandle which should extend Handle with pause() and resume()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants