Skip to content

Commit

Permalink
Fix backdropDuration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchoolur committed Sep 27, 2016
1 parent 5db6ddd commit ded4975
Show file tree
Hide file tree
Showing 7 changed files with 1,331 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/fonts/lg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions dist/js/lightgallery.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**!
* lightgallery.js | 0.0.3 | August 9th 2016
* http://sachinchoolur.github.io/lightGallery/
* lightgallery.js | 0.0.3 | September 27th 2016
* http://sachinchoolur.github.io/lightgallery.js/
* Copyright (c) 2016 Sachin N;
* @license Apache 2.0
*/(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Lightgallery = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
Expand Down Expand Up @@ -565,7 +565,9 @@
_lgUtils2.default.setVendor(inner, 'TransitionDuration', this.s.speed + 'ms');
}

_lgUtils2.default.addClass(document.querySelector('.lg-backdrop'), 'in');
setTimeout(function () {
_lgUtils2.default.addClass(document.querySelector('.lg-backdrop'), 'in');
});

setTimeout(function () {
_lgUtils2.default.addClass(_this.outer, 'lg-visible');
Expand Down Expand Up @@ -623,7 +625,7 @@
Plugin.prototype.isVideo = function (src, index) {

if (!src) {
throw new Error("No value was provided to isVideo for the src parameter, please check that slide " + index + " has an image/video src");
throw new Error("Make sure that slide " + index + " has an image/video src");
}

var html;
Expand Down
6 changes: 3 additions & 3 deletions dist/js/lightgallery.min.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions lg-js.sublime-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders":
[
{
"path": "."
}
]
}
Loading

0 comments on commit ded4975

Please sign in to comment.