Skip to content

Commit

Permalink
Merge pull request #1403 from HMenen/delete-unuse-code
Browse files Browse the repository at this point in the history
chore: reduce code size
  • Loading branch information
yuanyan authored Sep 29, 2019
2 parents b5e2ba1 + a20285b commit 60c10d2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/rax/src/vdom/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,10 @@ export default class NativeComponent extends BaseComponent {

if (!shouldNotRemoveChild) {
Host.driver.removeChild(this[NATIVE_NODE], this._parent);

// If the parent node has been removed, child node don't need to be removed
shouldNotRemoveChild = true;
}
}

this.__unmountChildren(shouldNotRemoveChild);
this.__unmountChildren(true);

this.__prevStyleCopy = null;
this.__destoryComponent();
Expand Down

0 comments on commit 60c10d2

Please sign in to comment.