Skip to content

Commit

Permalink
solve #305
Browse files Browse the repository at this point in the history
  • Loading branch information
Visual Idiot committed Dec 11, 2015
1 parent 382e9c9 commit b78330e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.codekit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"CodeKitInfo": "This is a CodeKit 2.x project configuration file. It is designed to sync project settings across multiple machines. MODIFYING THE CONTENTS OF THIS FILE IS A POOR LIFE DECISION. If you do so, you will likely cause CodeKit to crash. This file is not useful unless accompanied by the project that created it in CodeKit 2. This file is not backwards-compatible with CodeKit 1.x. For more information, see: http:\/\/incident57.com\/codekit",
"creatorBuild": "19099",
"creatorBuild": "19102",
"files": {
"\/bower.json": {
"fileType": 524288,
Expand Down
2 changes: 1 addition & 1 deletion dist/css/unslider.css

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

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/css/unslider/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// set it using jQuery
// position: relative;
overflow: auto;
margin: 0;
padding: 0;

&-wrap {
position: relative;
Expand Down Expand Up @@ -43,7 +45,7 @@
}
}

li {
ul, ol, li {
list-style: none;

/* Reset any weird spacing */
Expand Down
6 changes: 3 additions & 3 deletions src/js/unslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@

// We want to keep this script as small as possible
// so we'll optimise some checks
['nav', 'arrows', 'keys', 'infinite'].forEach(function(module) {
$.each(['nav', 'arrows', 'keys', 'infinite'], function(index, module) {
self.options[module] && self['init' + $._ucfirst(module)]();
});

Expand Down Expand Up @@ -328,7 +328,7 @@
self.initInfinite = function() {
var pos = ['first', 'last'];

pos.forEach(function(item, index) {
$.each(pos, function(index, item) {
self.$slides.push.apply(
self.$slides,

Expand All @@ -354,7 +354,7 @@
// Loop our array of arrows and use jQuery to remove
// It'll unbind any event handlers for us
self.destroyArrows = function() {
self.$arrows.forEach(function($arrow) {
$.each(self.$arrows, function($arrow) {
$arrow.remove();
});
};
Expand Down

0 comments on commit b78330e

Please sign in to comment.