Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added optional attribute data-index to delayed items to control their…

… order
  • Loading branch information...
commit 8749c19003a92f79a59acb139cf1a68116a935f4 1 parent 5ae40f7
@LeaVerou authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  slideshow.js
View
3  slideshow.js
@@ -397,6 +397,9 @@ self.prototype = {
// Update items collection
this.items = $$('.delayed, .delayed-children > *', this.slides[this.slide]);
+ this.items.sort(function(a, b){
+ return (a.getAttribute('data-index') || 0) - (b.getAttribute('data-index') || 0)
+ });
this.item = 0;
this.projector && this.projector.goto(which);
Please sign in to comment.
Something went wrong with that request. Please try again.