fix SwipeView tests

This commit is contained in:
Diullei Gomes
2013-02-24 13:42:15 -03:00
parent 5a400fcf66
commit ed4a49267b
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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;
+1
View File
@@ -43,4 +43,5 @@ class SwipeView {
onMoveIn: SwipeViewEvent;
onTouchStart: SwipeViewEvent;
wrapperHeight: number;
}