Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience to add listeners for node changes. #400

Open
michael opened this issue Aug 18, 2015 · 0 comments
Open

Add convenience to add listeners for node changes. #400

michael opened this issue Aug 18, 2015 · 0 comments

Comments

@michael
Copy link
Member

michael commented Aug 18, 2015

ATM, we use something like

doc.getEventProxy('path').add([node.id, 'title'], this, this.onChange)

It would be nicer to be able just to do:

node.connect(this, {
  'title:changed', this.onTitleChanged
});

or for any property change:

node.connect(this, {
  'node:changed': this.onChange
});

To disconnect:

node.disconnect(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant