- var doc = req.responseXML.documentElement;
- var i;
- var slides = this.grid.children;
- for (i=0 ; i<doc.children.length ; i++) {
- this.grid.replaceChild(getCopyOfNode(doc.children[i]), slides[i]);
- }
+ var doc = req.responseXML.documentElement;
+ var i;
+ var slides = this.grid.children;
+ for (i=0 ; i<doc.children.length ; i++) {
+ this.lastSlide = this.grid.appendChild(getCopyOfNode(doc.children[i]));
+ }
+ this.fetchingDisabled = false;
+ if (doc.getAttribute('nomore')) {
+ this.complete = true;
+ console.info('complete');
+ }
+ this.windowScrollGridHandler();