Pass Option<T> for optional primitive arguments without a default value (fixes #1813).

This commit is contained in:
Ms2ger 2014-03-12 10:03:44 +01:00
parent a6100563a6
commit 59bcabb75e
4 changed files with 51 additions and 56 deletions

View file

@ -43,7 +43,7 @@ impl Blob {
~""
}
pub fn Slice(&self, _start: i64, _end: i64, _contentType: Option<DOMString>) -> JS<Blob> {
pub fn Slice(&self, _start: Option<i64>, _end: Option<i64>, _contentType: Option<DOMString>) -> JS<Blob> {
Blob::new(&self.window)
}