Skip to content

Commit e1905e8

Browse files
committed
Update Demo
1 parent 8e168a1 commit e1905e8

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

demo/js/lightgallery.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
/*! lightgallery - v1.3.2 - 2016-09-23
1+
/*! lightgallery - v1.3.4 - 2016-09-28
22
* http://sachinchoolur.github.io/lightGallery/
33
* Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */
44

55
(function (root, factory) {
66
if (typeof define === 'function' && define.amd) {
77
// AMD. Register as an anonymous module unless amdModuleId is set
8-
define(["jquery"], function (a0) {
8+
define(['jquery'], function (a0) {
99
return (factory(a0));
1010
});
1111
} else if (typeof exports === 'object') {
1212
// Node. Does not work with strict CommonJS, but
1313
// only CommonJS-like environments that support module.exports,
1414
// like Node.
15-
module.exports = factory(require("jquery"));
15+
module.exports = factory(require('jquery'));
1616
} else {
1717
factory(jQuery);
1818
}
19-
}(this, function (jquery) {
19+
}(this, function ($) {
2020

2121

22-
(function(){
22+
(function($, window, document, undefined) {
2323
'use strict';
2424

2525
var defaults = {
@@ -361,7 +361,10 @@
361361
$inner.css('transition-duration', this.s.speed + 'ms');
362362
}
363363

364-
$('.lg-backdrop').addClass('in');
364+
365+
setTimeout(function() {
366+
$('.lg-backdrop').addClass('in');
367+
});
365368

366369
setTimeout(function() {
367370
_this.$outer.addClass('lg-visible');
@@ -1331,7 +1334,7 @@
13311334

13321335
$.fn.lightGallery.modules = {};
13331336

1334-
})();
1337+
})(jQuery, window, document);
13351338

13361339

13371340
}));

0 commit comments

Comments
 (0)