Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Replaced mutation observer with root element zone changes #184

Merged
merged 4 commits into from
Mar 11, 2016

Conversation

sumitarora
Copy link
Member

Should fix: #181 and #164

@@ -117,5 +117,5 @@ export abstract class BaseAdapter {

abstract serializeComponent(el: any, event: string): TreeNode;

abstract cleanup(): void;
// abstract cleanup(): void;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's stay away from keeping commented out code, we have history with source control and can always go back if needed. I would remove it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@igor-ka
Copy link

igor-ka commented Mar 10, 2016

@sumitarora overall LGTM minus the comments. Otherwise I am not sure if I followed what is happening here 100% as I am a but out of the loop with regards to what API they provided us with regards to being notified of changes to the components.

I am giving it a 👍 , but let's have @vanessayuenn or @bertrandk give a second look through.
Otherwise this is great, good job!

@bertrandk
Copy link
Contributor

The suspicion is that we're leaking a lot of DOM nodes in this routine. @sumitarora, did you plan on addressing that in this PR or treating it separately?

In any case, aside from the small cleanup advocated, this looks good to me.

@sumitarora
Copy link
Member Author

@bertrandk I will do another PR for DOM issues

@@ -109,11 +133,6 @@ export class Angular2Adapter extends BaseAdapter {
};
}

cleanup(): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new listener doesn't need to be disconnected/unsubscribed?

@vanessayuenn
Copy link
Contributor

only had one question about the unsubscribe, but it looks good otherwise. 👍

sumitarora added a commit that referenced this pull request Mar 11, 2016
Replaced mutation observer with root element zone changes
@sumitarora sumitarora merged commit e3bd79e into rangle:master Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the App.tick when editing component properties
4 participants