diff options
author | rohan.prinja <rohan.prinja@samsung.com> | 2015-11-03 19:01:23 +0900 |
---|---|---|
committer | rohan.prinja <rohan.prinja@samsung.com> | 2015-11-03 19:01:23 +0900 |
commit | 6e774ea6eb6d719b98f924ab5bd0629d92fb27d0 (patch) | |
tree | fa48b89bb313a2e9514124b556bbcff5ed526a0f /components/script/dom/touchlist.rs | |
parent | 7032a5d1dee9bb2ba0bee45f1fda984dadfa0609 (diff) | |
parent | 4f51710ed387baa1ad0a6e4cdb0fc5eee44093d5 (diff) | |
download | servo-6e774ea6eb6d719b98f924ab5bd0629d92fb27d0.tar.gz servo-6e774ea6eb6d719b98f924ab5bd0629d92fb27d0.zip |
merge from master
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 |