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

Notifications: reverse the dispatch order #113

Merged
merged 2 commits into from
Mar 27, 2017
Merged

Notifications: reverse the dispatch order #113

merged 2 commits into from
Mar 27, 2017

Conversation

adrientetar
Copy link
Contributor

BaseObject has a selfNotificationCallback that subscribes to all notifications of the object so to destroy representations. This should be called prior to any specific notification.

Reversing the dispatch order does that.

Note: this still means representations haven't been destroyed in the (None, None) and (None, observableRef) cases, but this change alleviates #102 for the more concrete cases.

r? @anthrotype

cc @typemytype

BaseObject has a selfNotificationCallback that subscribes to all notifications of the object so to destroy representations. This should be called prior to any specific notification.
@typesupply
Copy link
Member

I'm fine with this.

@anthrotype anthrotype merged commit 2d4cbed into robotools:master Mar 27, 2017
@adrientetar adrientetar deleted the notifications-order branch March 27, 2017 12:14
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.

3 participants