From df60f8b2c559cb4119b96174231fc4161bdcb4da Mon Sep 17 00:00:00 2001 From: Tim Taubert Date: Sun, 12 Oct 2014 13:24:24 +0200 Subject: Privatize EventTarget and EventListenerEntry --- components/script/dom/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/document.rs') diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 7e698a9ec6a..c67604942da 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -98,7 +98,7 @@ pub struct Document { impl DocumentDerived for EventTarget { fn is_document(&self) -> bool { - self.type_id == NodeTargetTypeId(DocumentNodeTypeId) + *self.type_id() == NodeTargetTypeId(DocumentNodeTypeId) } } -- cgit v1.2.3