Skip to content

Commit b96c345

Browse files
committed
Bug fixes and improvements
1 parent a4221a0 commit b96c345

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

dist/js/glightbox.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,6 @@
17341734
var img = new Image();
17351735
var titleID = 'gSlideTitle_' + index;
17361736
var textID = 'gSlideDesc_' + index;
1737-
console.log(data);
17381737
img.addEventListener('load', function () {
17391738
if (isFunction(callback)) {
17401739
callback();
@@ -1751,11 +1750,11 @@
17511750
img.setAttribute('aria-describedby', textID);
17521751
}
17531752

1754-
if (data._hasCustomWidth) {
1753+
if (data.hasOwnProperty('_hasCustomWidth') && data._hasCustomWidth) {
17551754
img.style.width = data.width;
17561755
}
17571756

1758-
if (data._hasCustomHeight) {
1757+
if (data.hasOwnProperty('_hasCustomHeight') && data._hasCustomHeight) {
17591758
img.style.height = data.height;
17601759
}
17611760

@@ -2415,7 +2414,7 @@
24152414
return Slide;
24162415
}();
24172416

2418-
var _version = '3.0.8';
2417+
var _version = '3.0.9';
24192418

24202419
var isMobile$1 = isMobile();
24212420

dist/js/glightbox.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/glightbox.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import touchNavigation from './core/touch-navigation.js';
1010
import Slide from './core/slide.js';
1111
import * as _ from './utils/helpers.js';
1212

13-
const version = '3.0.8';
13+
const version = '3.0.9';
1414
const isMobile = _.isMobile();
1515
const isTouch = _.isTouch();
1616
const html = document.getElementsByTagName('html')[0];

0 commit comments

Comments
 (0)