diff options
Diffstat (limited to 'components/script/dom/touchlist.rs')
-rw-r--r-- | components/script/dom/touchlist.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/touchlist.rs b/components/script/dom/touchlist.rs index ed40a5ee2ed..ae5313e855e 100644 --- a/components/script/dom/touchlist.rs +++ b/components/script/dom/touchlist.rs @@ -38,7 +38,7 @@ impl TouchListMethods for TouchList { /// https://w3c.github.io/touch-events/#widl-TouchList-item-getter-Touch-unsigned-long-index fn Item(&self, index: u32) -> Option<Root<Touch>> { - self.touches.get(index as usize).map(JS::root) + self.touches.get(index as usize).map(|js| Root::from_ref(&**js)) } /// https://w3c.github.io/touch-events/#widl-TouchList-item-getter-Touch-unsigned-long-index |