Hook CE registry into element creation

This commit is contained in:
Connor Brewster 2017-06-09 18:23:27 -06:00
parent 3e4021ef1a
commit 6697f5469d
25 changed files with 146 additions and 240 deletions

View file

@ -428,6 +428,11 @@ impl Node {
self.preceding_siblings().count() as u32
}
/// Returns true if this node has a parent.
pub fn has_parent(&self) -> bool {
self.parent_node.get().is_some()
}
pub fn children_count(&self) -> u32 {
self.children_count.get()
}