aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/touchlist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/touchlist.rs')
-rw-r--r--components/script/dom/touchlist.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/touchlist.rs b/components/script/dom/touchlist.rs
index ae5313e855e..14bb8a68766 100644
--- a/components/script/dom/touchlist.rs
+++ b/components/script/dom/touchlist.rs
@@ -42,9 +42,7 @@ impl TouchListMethods for TouchList {
}
/// https://w3c.github.io/touch-events/#widl-TouchList-item-getter-Touch-unsigned-long-index
- fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<Root<Touch>> {
- let item = self.Item(index);
- *found = item.is_some();
- item
+ fn IndexedGetter(&self, index: u32) -> Option<Root<Touch>> {
+ self.Item(index)
}
}