Add links to spec for script::dom structs/methods

This commit is contained in:
Corey Farwell 2015-03-28 20:04:30 -04:00
parent e70beca74b
commit 46f14449d0
10 changed files with 36 additions and 0 deletions

View file

@ -18,6 +18,7 @@ use util::str::DOMString;
use std::cell::Cell;
use std::default::Default;
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#interface-UIEvent
#[dom_struct]
pub struct UIEvent {
event: Event,
@ -70,10 +71,12 @@ impl UIEvent {
}
impl<'a> UIEventMethods for JSRef<'a, UIEvent> {
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#widl-UIEvent-view
fn GetView(self) -> Option<Temporary<Window>> {
self.view.get()
}
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#widl-UIEvent-detail
fn Detail(self) -> i32 {
self.detail.get()
}