+Lightbox.prototype._buildSlidesIndex = function() {
+ this.slides = [];
+ var node, i;
+ for (i=0 ; i<this.grid.childNodes.length ; i++) {
+ node = this.grid.childNodes[i];
+ if (node.nodeType === 1) { // is element
+ this.slides.push(node);
+ }
+ }
+ this.lastSlide = this.slides[this.slides.length-1];
+};
+