mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Use Cell/RefCell for interior mutability of UIEvent.
This commit is contained in:
parent
aaa8c838d2
commit
4c167480d7
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ pub trait UIEventMethods {
|
||||||
|
|
||||||
impl<'a> UIEventMethods for JSRef<'a, UIEvent> {
|
impl<'a> UIEventMethods for JSRef<'a, UIEvent> {
|
||||||
fn GetView(&self) -> Option<Temporary<Window>> {
|
fn GetView(&self) -> Option<Temporary<Window>> {
|
||||||
self.view.clone().map(|view| Temporary::new(view))
|
self.view.map(|view| Temporary::new(view))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn Detail(&self) -> i32 {
|
fn Detail(&self) -> i32 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue