diff options
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r-- | src/components/main/layout/construct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index 2c0a7093690..8ae7c06a2d1 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -851,8 +851,8 @@ trait ObjectElement { impl<'ln> ObjectElement for ThreadSafeLayoutNode<'ln> { fn get_type_and_data(&self) -> (Option<&'static str>, Option<&'static str>) { - (self.with_element(|e| { e.get_attr(&namespace::Null, "type") } ), - self.with_element(|e| { e.get_attr(&namespace::Null, "data") } )) + let elem = self.as_element(); + (elem.get_attr(&namespace::Null, "type"), elem.get_attr(&namespace::Null, "data")) } fn has_object_data(&self) -> bool { |