Skip to content

Commit

Permalink
Switch cryptic init function call to refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPiscitelli committed Nov 16, 2018
1 parent ba743b2 commit 718a2a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions docs/assets/js/glider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
\___//_//_/ \_,_/ \__//_/ (_)__/ //___/
|___/
Version: 1.5.2
Version: 1.5.3
Author: Nick Piscitelli (pickykneee)
Website: https://nickpiscitelli.com
Documentation: http://nickpiscitelli.github.io/Glider.js
Expand Down Expand Up @@ -343,7 +343,7 @@

if (_.slides.length){
_.track.removeChild(_.slides[index]);
_.init(true, true);
_.refresh(true);
_.emit('remove')
}
}
Expand All @@ -352,7 +352,7 @@
var _ = this

_.track.appendChild(ele);
_.init(true, true);
_.refresh(true);
_.emit('add')
}

Expand All @@ -377,6 +377,7 @@

gliderPrototype.setOption = function(opt){
this.opt = Object.assign({}, this.opt, opt)
this._opt = Object.assign({}, this._opt, opt);
}

gliderPrototype.destroy = function(){
Expand Down Expand Up @@ -411,4 +412,4 @@
eventHandler(k, args[k]);
});
}
}));
}));
6 changes: 3 additions & 3 deletions glider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
\___//_//_/ \_,_/ \__//_/ (_)__/ //___/
|___/
Version: 1.5.2
Version: 1.5.3
Author: Nick Piscitelli (pickykneee)
Website: https://nickpiscitelli.com
Documentation: http://nickpiscitelli.github.io/Glider.js
Expand Down Expand Up @@ -343,7 +343,7 @@

if (_.slides.length){
_.track.removeChild(_.slides[index]);
_.init(true, true);
_.refresh(true);
_.emit('remove')
}
}
Expand All @@ -352,7 +352,7 @@
var _ = this

_.track.appendChild(ele);
_.init(true, true);
_.refresh(true);
_.emit('add')
}

Expand Down
6 changes: 3 additions & 3 deletions glider.min.js

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

0 comments on commit 718a2a8

Please sign in to comment.