Permalink
Browse files

fix SwipeView tests

  • Loading branch information...
1 parent 5a400fc commit ed4a49267b7d9d9b5f3361389dbc554cb2f888c3 @Diullei Diullei committed Feb 24, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −2 swipeview/swipeview-tests.ts
  2. +1 −0 swipeview/swipeview.d.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
@@ -43,4 +43,5 @@ class SwipeView {
onMoveIn: SwipeViewEvent;
onTouchStart: SwipeViewEvent;
+ wrapperHeight: number;
}

0 comments on commit ed4a492

Please sign in to comment.