From 4c8ecdfcdf6c229fff6acacce5865369e67dc5f1 Mon Sep 17 00:00:00 2001 From: miripiruni Date: Sun, 20 Jan 2013 03:31:34 +0400 Subject: [PATCH] JSDOc: shower.scrollToSlide return only Boolean --- shower.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shower.js b/shower.js index 5badbfe..f7caf6e 100755 --- a/shower.js +++ b/shower.js @@ -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]) {