lightbox.js: Remove computed access of exports.

This wouldn’t work after migration to an ES6 module.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2018-08-04 02:45:25 -04:00 committed by Tim Abbott
parent 9368c33098
commit 363956428a
1 changed files with 4 additions and 2 deletions

View File

@ -275,8 +275,10 @@ exports.initialize = function () {
$("#lightbox_overlay").on("click", ".center .arrow", function () {
var direction = $(this).attr("data-direction");
if (/^(next|prev)$/.test(direction)) {
lightbox[direction]();
if (direction === 'next') {
lightbox.next();
} else if (direction === 'prev') {
lightbox.prev();
}
});