mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fix SwipeView tests
This commit is contained in:
@@ -132,7 +132,7 @@ function demo3() {
|
||||
req.onreadystatechange = function () {
|
||||
if (req.readyState != 4) return;
|
||||
|
||||
paginate(req.status != 200 && req.status != 304 ? false : req.responseText);
|
||||
paginate(req.status != 200 && (req.status != 304 ? false : <any>req.responseText));
|
||||
|
||||
req = null;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ function demo3() {
|
||||
progressCurrent = 0,
|
||||
progressMaxWidth = document.getElementById('progressbar').clientWidth,
|
||||
progressToBookRatio = 0,
|
||||
progressBar = document.querySelector('#progressbar > span'),
|
||||
progressBar = <HTMLElement>document.querySelector('#progressbar > span'),
|
||||
size;
|
||||
|
||||
if (!book) return;
|
||||
|
||||
Vendored
+1
@@ -43,4 +43,5 @@ class SwipeView {
|
||||
onMoveIn: SwipeViewEvent;
|
||||
onTouchStart: SwipeViewEvent;
|
||||
|
||||
wrapperHeight: number;
|
||||
}
|
||||
Reference in New Issue
Block a user