aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/customevent.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-04-14 17:16:55 -0500
committerbors-servo <metajack+bors@gmail.com>2015-04-14 17:16:55 -0500
commit3dc25af9e121db010e4385efb3863ba45b0e0bcf (patch)
treeac9041361e143795e170ce026c334745475ac8b9 /components/script/dom/customevent.rs
parent7f422e2076e7ebc9949e9fb2ffc3f09c653130c0 (diff)
parentcc4a64e1feb4e4a94621374f993ba548ab3681ff (diff)
downloadservo-3dc25af9e121db010e4385efb3863ba45b0e0bcf.tar.gz
servo-3dc25af9e121db010e4385efb3863ba45b0e0bcf.zip
Auto merge of #5693 - frewsxcv:spec-links, r=jdm
Extracted out of #5649 * add more hyperlinks to associated specification for structs/methods * follow redirects and update links * replace broken links * removal of WHATWG multipage page name since the page name is not guaranteed to be stable <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5693) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/customevent.rs')
-rw-r--r--components/script/dom/customevent.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/customevent.rs b/components/script/dom/customevent.rs
index ab8d53e5309..bb64e3075f8 100644
--- a/components/script/dom/customevent.rs
+++ b/components/script/dom/customevent.rs
@@ -15,6 +15,7 @@ use js::jsapi::JSContext;
use js::jsval::{JSVal, NullValue};
use util::str::DOMString;
+// https://dom.spec.whatwg.org/#interface-customevent
#[dom_struct]
pub struct CustomEvent {
event: Event,
@@ -53,10 +54,12 @@ impl CustomEvent {
}
impl<'a> CustomEventMethods for JSRef<'a, CustomEvent> {
+ // https://dom.spec.whatwg.org/#dom-customevent-detail
fn Detail(self, _cx: *mut JSContext) -> JSVal {
self.detail.get()
}
+ // https://dom.spec.whatwg.org/#dom-customevent-initcustomevent
fn InitCustomEvent(self,
_cx: *mut JSContext,
type_: DOMString,