aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/formdata.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-04-18 00:12:52 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-05-03 14:18:31 -0400
commit0f2d0b1dc3d98ef109627dda061c5a54ff06a91d (patch)
treea698b4eb0829079f09ad862c43a4eb1101c78e40 /src/components/script/dom/formdata.rs
parent7b3e6d1f2125faf598919722b72cc56197d0102c (diff)
downloadservo-0f2d0b1dc3d98ef109627dda061c5a54ff06a91d.tar.gz
servo-0f2d0b1dc3d98ef109627dda061c5a54ff06a91d.zip
Address review comments.
Diffstat (limited to 'src/components/script/dom/formdata.rs')
-rw-r--r--src/components/script/dom/formdata.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/dom/formdata.rs b/src/components/script/dom/formdata.rs
index 8cd1eebb028..33dae4b97c2 100644
--- a/src/components/script/dom/formdata.rs
+++ b/src/components/script/dom/formdata.rs
@@ -28,17 +28,17 @@ pub struct FormData {
}
impl FormData {
- pub fn new_inherited(form: Option<JSRef<HTMLFormElement>>, window: JS<Window>) -> FormData {
+ pub fn new_inherited(form: Option<JSRef<HTMLFormElement>>, window: &JSRef<Window>) -> FormData {
FormData {
data: HashMap::new(),
reflector_: Reflector::new(),
- window: window,
+ window: window.unrooted(),
form: form.map(|form| form.unrooted())
}
}
pub fn new(form: Option<JSRef<HTMLFormElement>>, window: &JSRef<Window>) -> Temporary<FormData> {
- reflect_dom_object(~FormData::new_inherited(form, window.unrooted()), window, FormDataBinding::Wrap)
+ reflect_dom_object(~FormData::new_inherited(form, window), window, FormDataBinding::Wrap)
}
pub fn Constructor(window: &JSRef<Window>, form: Option<JSRef<HTMLFormElement>>) -> Fallible<Temporary<FormData>> {