Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Node.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Node extends React.Component {
}

famousDelete() {
this._famousNode.dismount();
this._famousNode.getParent().removeChild(this._famousNode);
Copy link
Author

Choose a reason for hiding this comment

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

@pilwon This throws if the node has no parent. Maybe we should check if the node has a parent first?

Copy link
Author

Choose a reason for hiding this comment

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

@pilwon By the way, I've ben using react-famous on two projects. It's really nice (except for all the bugs in Famous itself right now)!

this._famousNode = null;
}

Expand Down