Merge pull request #175 from shower/tg/174-first-last

Fix Home/End navigation (#174)
This commit is contained in:
Vadim Makeev 2014-02-18 01:26:15 +03:00
commit fc30543224
2 changed files with 3 additions and 3 deletions

View File

@ -493,7 +493,7 @@ window.shower = window.shower || (function(window, document, undefined) {
shower.first = function(callback) {
var slide = shower.slideList[shower.getCurrentSlideNumber()];
slide.timing && slide.stopTimer();
slide && slide.timing && slide.stopTimer();
shower.go(0);
if (typeof(callback) === 'function') {
@ -508,7 +508,7 @@ window.shower = window.shower || (function(window, document, undefined) {
shower.last = function(callback) {
var slide = shower.slideList[shower.getCurrentSlideNumber()];
slide.timing && slide.stopTimer();
slide && slide.timing && slide.stopTimer();
shower.go(shower.slideList.length - 1);
if (typeof(callback) === 'function') {

2
shower.min.js vendored

File diff suppressed because one or more lines are too long