mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
merge from master
This commit is contained in:
commit
6e774ea6eb
1044 changed files with 46059 additions and 1506 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue