Skip to content

Commit

Permalink
doh, forgot to check before restart autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
Visual Idiot committed Nov 9, 2015
1 parent 2bd5079 commit 8c37897
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
20 changes: 0 additions & 20 deletions config.codekit
Original file line number Diff line number Diff line change
Expand Up @@ -144,26 +144,6 @@
"outputPathIsSetByUser": 1,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/src\/variables.less": {
"allowInsecureImports": 0,
"createSourceMap": 0,
"disableJavascript": 0,
"fileType": 1,
"ieCompatibility": 1,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/src\/variables.less",
"outputAbbreviatedPath": "\/css\/variables.css",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 0,
"relativeURLS": 0,
"shouldRunAutoprefixer": 0,
"shouldRunBless": 0,
"strictImports": 0,
"strictMath": 0,
"strictUnits": 0
}
},
"hooks": [
Expand Down
2 changes: 1 addition & 1 deletion dist/js/unslider-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/js/unslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@
$me.siblings().removeClass(self.options.activeClass);

// Stop the jerky stop-start
self.stop().start();
if(self.options.autoplay) {
self.stop().start();
}

// Move the slide
self.animate($me.attr('data-slide'));
Expand Down

0 comments on commit 8c37897

Please sign in to comment.