Pass Option<JSVal> for optional JSVals.

This commit is contained in:
Ms2ger 2014-03-07 12:40:25 +01:00
parent 134d1f6fe3
commit 971a4c58bb
4 changed files with 21 additions and 3 deletions

View file

@ -207,7 +207,7 @@ impl Window {
pub fn Print(&self) {
}
pub fn ShowModalDialog(&self, _cx: *JSContext, _url: DOMString, _argument: JSVal) -> JSVal {
pub fn ShowModalDialog(&self, _cx: *JSContext, _url: DOMString, _argument: Option<JSVal>) -> JSVal {
JSVAL_NULL
}
}