From 85df7f0d6f4f66ad64130ecb09225bb94377737d Mon Sep 17 00:00:00 2001 From: Matt McCoy Date: Wed, 7 Jan 2015 18:42:06 -0500 Subject: Fixes #4164 Make Constructor and new functions take GlobalRef by value --- components/script/dom/comment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/comment.rs') diff --git a/components/script/dom/comment.rs b/components/script/dom/comment.rs index 40d9a5da9b6..8d81c47f978 100644 --- a/components/script/dom/comment.rs +++ b/components/script/dom/comment.rs @@ -38,7 +38,7 @@ impl Comment { document, CommentBinding::Wrap) } - pub fn Constructor(global: &GlobalRef, data: DOMString) -> Fallible> { + pub fn Constructor(global: GlobalRef, data: DOMString) -> Fallible> { let document = global.as_window().Document().root(); Ok(Comment::new(data, document.r())) } -- cgit v1.2.3