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

Adds change type specific listeners for references. #31

Merged
merged 1 commit into from Feb 8, 2015

Conversation

mikaelbr
Copy link
Member

@mikaelbr mikaelbr commented Feb 8, 2015

Adds possibility of doing:

var ref = structure.reference('bar');
ref.observe('delete', fn);
ref.observe('change', fn);
ref.observe('add', fn);

// Or all:
ref.observe(fn);
ref.observe('swap', fn);

@dashed
Copy link
Contributor

dashed commented Feb 8, 2015

Looks good to me.

mikaelbr added a commit that referenced this pull request Feb 8, 2015
Adds change type specific listeners for references.
@mikaelbr mikaelbr merged commit a9ce8ce into master Feb 8, 2015
@mikaelbr mikaelbr deleted the eventTypeReferenceObserver branch March 9, 2015 06:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants