Closed mohan43u closed 9 years ago
@mohan43u sorry for late response, I did not get notifications for pull requests. Unfortunately I cannot auto merge anymore, but I included the thumbnails attribute in the development branch and will merge it into master in the next few days.
this patch will make thumbnails (which is used for grouping images) accessible so whenever a image element loaded dynamically, one can push that image element to this array.
like this,
var dynamicpic = createDynamicImageElementFromUrl('//somewhere.ext/some/image'); lightbox.thumbnails.push(dynamicpic); dynamicpic.addEventListener('click', function(e) { lightbox.open(this); });