Commit 4c8ecdfc authored by miripiruni's avatar miripiruni

JSDOc: shower.scrollToSlide return only Boolean

parent 75686e01
......@@ -342,11 +342,11 @@ window.shower = (function(window, document, undefined) {
/**
* Scroll to slide.
* @param {Number} slideNumber slide number (sic!)
* @returns {Undefined|Boolean}
* @returns {Boolean}
*/
shower.scrollToSlide = function(slideNumber) {
var currentSlide,
ret;
ret = false;
if ( ! shower._isNumber(slideNumber)) {
throw new Error('Gimme slide number as Number, baby!');
......@@ -358,7 +358,7 @@ window.shower = (function(window, document, undefined) {
// @TODO: WTF?
if (-1 === slideNumber) {
return;
return ret;
}
if (slideList[slideNumber]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment