1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Remove underscore in pagination example

This commit is contained in:
Fred Chasen 2016-11-30 22:09:07 +01:00
parent 0a08edaef1
commit 2d6658e39c

View file

@ -121,7 +121,7 @@
var slide = function(){
book.gotoPage(slider.value);
};
var throttledSlide = _.throttle(slide, 200);
// var throttledSlide = _.throttle(slide, 200);
var mouseDown = false;
var rendered = book.renderTo("area");
@ -149,7 +149,7 @@
slider.setAttribute("step", 1);
slider.setAttribute("value", 0);
slider.addEventListener("change", throttledSlide, false);
slider.addEventListener("change", slide, false);
slider.addEventListener("mousedown", function(){
mouseDown = true;
}, false);