diff options
author | Matt McCoy <mattnenterprise@yahoo.com> | 2015-01-07 18:42:06 -0500 |
---|---|---|
committer | Matt McCoy <matt.mccoy@threewide.com> | 2015-01-07 18:52:41 -0500 |
commit | 85df7f0d6f4f66ad64130ecb09225bb94377737d (patch) | |
tree | a91a97b7fffcabdde988e7664dcd7da093fe7c31 /components/script/dom/range.rs | |
parent | cf616b90a236f88058dbad74b568b4d4379d2829 (diff) | |
download | servo-85df7f0d6f4f66ad64130ecb09225bb94377737d.tar.gz servo-85df7f0d6f4f66ad64130ecb09225bb94377737d.zip |
Fixes #4164 Make Constructor and new functions take GlobalRef by value
Diffstat (limited to 'components/script/dom/range.rs')
-rw-r--r-- | components/script/dom/range.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/range.rs b/components/script/dom/range.rs index 0a7714c5b70..3f73e55bf34 100644 --- a/components/script/dom/range.rs +++ b/components/script/dom/range.rs @@ -30,7 +30,7 @@ impl Range { RangeBinding::Wrap) } - pub fn Constructor(global: &GlobalRef) -> Fallible<Temporary<Range>> { + pub fn Constructor(global: GlobalRef) -> Fallible<Temporary<Range>> { let document = global.as_window().Document().root(); Ok(Range::new(document.r())) } |