Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
my-cucumbers-ru-github-io
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Лотуга Данила Сергеевич
my-cucumbers-ru-github-io
Commits
04e3946f
Commit
04e3946f
authored
Jan 20, 2013
by
miripiruni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JSDoc; Minor changes in next() & previous()
parent
890d312e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
shower.js
shower.js
+4
-8
No files found.
shower.js
View file @
04e3946f
...
...
@@ -71,7 +71,7 @@ window.shower = (function(window, document, undefined) {
/**
* Check if arg is number.
* @private
* @param {
Number|whatelse} arg Any type
* @param {
String|Number} arg
* @returns {Boolean}
*/
shower
.
_isNumber
=
function
(
arg
)
{
...
...
@@ -165,7 +165,7 @@ window.shower = (function(window, document, undefined) {
*/
shower
.
next
=
function
(
callback
)
{
var
currentSlideNumber
=
shower
.
getCurrentSlideNumber
(),
ret
;
ret
=
false
;
// Only go to next slide if current slide have no inner
// navigation or inner navigation is fully shown
...
...
@@ -182,8 +182,6 @@ window.shower = (function(window, document, undefined) {
if
(
typeof
(
callback
)
===
'function'
)
{
callback
();
}
}
else
{
ret
=
false
;
}
return
ret
;
...
...
@@ -197,7 +195,7 @@ window.shower = (function(window, document, undefined) {
*/
shower
.
previous
=
function
(
callback
)
{
var
currentSlideNumber
=
shower
.
getCurrentSlideNumber
(),
ret
;
ret
=
false
;
// slides starts from 0
if
(
currentSlideNumber
>
0
)
{
...
...
@@ -207,8 +205,6 @@ window.shower = (function(window, document, undefined) {
if
(
typeof
(
callback
)
===
'function'
)
{
callback
();
}
}
else
{
ret
=
false
;
}
return
ret
;
...
...
@@ -242,7 +238,7 @@ window.shower = (function(window, document, undefined) {
/**
* Switch to slide view.
* @param {Function} [callback] runs only if shower.enterSlideMode() complete successfully
* @returns {
Number|
Boolean}
* @returns {Boolean}
*/
shower
.
enterSlideMode
=
function
(
callback
)
{
var
currentSlideNumber
=
shower
.
getCurrentSlideNumber
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment