Working on dynamic thumbnail fetching
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
19120f9712
commit
22d87f0e1d
@ -221,6 +221,10 @@
|
|||||||
visibleThumbs: {
|
visibleThumbs: {
|
||||||
type: Array,
|
type: Array,
|
||||||
value: []
|
value: []
|
||||||
|
},
|
||||||
|
thumbnails: {
|
||||||
|
type: Array,
|
||||||
|
value: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -332,7 +336,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var index, start, stop, length = this.thumbnails.length - 1;
|
var index, start, stop, length = this.thumbnails.length;
|
||||||
|
|
||||||
start = 0;
|
start = 0;
|
||||||
stop = this.thumbnails.length - 1;
|
stop = this.thumbnails.length - 1;
|
||||||
@ -529,6 +533,8 @@
|
|||||||
lastPath = albums[albums.length - 1];
|
lastPath = albums[albums.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this.pendingPhotos = this.pendingPhotos.concat(photos);
|
||||||
|
|
||||||
for (var i = 0; i < photos.length; i++) {
|
for (var i = 0; i < photos.length; i++) {
|
||||||
var photo = photos[i],
|
var photo = photos[i],
|
||||||
thumbnail = document.createElement("photo-thumbnail"),
|
thumbnail = document.createElement("photo-thumbnail"),
|
||||||
@ -589,10 +595,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
Polymer.dom(thumbnails).appendChild(thumbnail);
|
Polymer.dom(thumbnails).appendChild(thumbnail);
|
||||||
|
this.thumbnails.push(thumbnail);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.thumbnails = this.querySelectorAll("photo-thumbnail");
|
|
||||||
|
|
||||||
this.triggerVisibilityChecks();
|
this.triggerVisibilityChecks();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user