Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix SwipeView tests

  • Loading branch information...
commit ed4a49267b7d9d9b5f3361389dbc554cb2f888c3 1 parent 5a400fc
@Diullei Diullei authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 swipeview/swipeview-tests.ts
  2. +1 −0  swipeview/swipeview.d.ts
View
4 swipeview/swipeview-tests.ts
@@ -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;
View
1  swipeview/swipeview.d.ts
@@ -43,4 +43,5 @@ class SwipeView {
onMoveIn: SwipeViewEvent;
onTouchStart: SwipeViewEvent;
+ wrapperHeight: number;
}
Please sign in to comment.
Something went wrong with that request. Please try again.