Skip to content

Commit

Permalink
Update glider.js
Browse files Browse the repository at this point in the history
Remove duplicated track class name
  • Loading branch information
jasongerbes-vista committed Dec 27, 2018
1 parent 3dd8d55 commit 365b65c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/assets/js/glider.min.js

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

4 changes: 2 additions & 2 deletions glider.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@
if (_.opt.addTrack) {
// create track and wrap slides
_.track = document.createElement('div')
_.track.className = 'glider-track'
_.ele.appendChild(_.track)
while (_.ele.children.length !== 1) {
_.track.appendChild(_.ele.children[0])
}
} else {
// first and only child is the track
_.track = _.ele.children[0]
_.track.classList.add('glider-track')
}

_.track.classList.add('glider-track')

// start glider
_.init()

Expand Down
Loading

0 comments on commit 365b65c

Please sign in to comment.