diff options
author | Edit Balint <edbalint@inf.u-szeged.hu> | 2014-10-22 15:18:48 +0200 |
---|---|---|
committer | Edit Balint <edbalint@inf.u-szeged.hu> | 2014-10-22 19:05:25 +0200 |
commit | daf9e59869b037279a84ae625889459afe459096 (patch) | |
tree | 919a05ecd24b2bd031d97e20323d40bd3791ce45 /components/script/dom/document.rs | |
parent | 590a93120a26ab6ea787831d7ba08c47423148bc (diff) | |
download | servo-daf9e59869b037279a84ae625889459afe459096.tar.gz servo-daf9e59869b037279a84ae625889459afe459096.zip |
Make DOM getters that return &JS<T> return Temporary<T> instead #3707
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 340e46db95e..cc2fed3682e 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -344,8 +344,8 @@ impl Document { } #[inline] - pub fn window<'a>(&'a self) -> &'a JS<Window> { - &self.window + pub fn window(&self) -> Temporary<Window> { + Temporary::new(self.window) } #[inline] |