Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Uncaught Error: Make sure that slide 0 has an image/video src
  • Loading branch information
sachinchoolur committed May 17, 2018
1 parent 1b89164 commit 3ebfebc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightgallery.js",
"version": "1.0.2",
"version": "1.0.3",
"description": "Full featured lightbox gallery. Zero dependencies",
"main": [
"dist/js/lightgallery.min.js",
Expand Down
10 changes: 3 additions & 7 deletions dist/js/lightgallery.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**!
* lightgallery.js | 1.0.2 | January 14th 2018
* lightgallery.js | 1.0.3 | May 17th 2018
* http://sachinchoolur.github.io/lightgallery.js/
* Copyright (c) 2016 Sachin N;
* @license GPLv3
*/(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){
*/(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(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports'], factory);
Expand Down Expand Up @@ -624,10 +624,6 @@
*/
Plugin.prototype.isVideo = function (src, index) {

if (!src) {
throw new Error("Make sure that slide " + index + " has an image/video src");
}

var html;
if (this.s.dynamic) {
html = this.s.dynamicEl[index].html;
Expand Down Expand Up @@ -1601,4 +1597,4 @@
});

},{"./lg-utils":1}]},{},[2])(2)
});
});
4 changes: 2 additions & 2 deletions dist/js/lightgallery.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lightgallery.js",
"version": "1.0.2",
"version": "1.0.3",
"description": "Full featured lightbox gallery. Zero dependencies",
"keywords": [
"gallery",
Expand Down
4 changes: 0 additions & 4 deletions src/js/lightgallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,6 @@ Plugin.prototype.doCss = function() {
*/
Plugin.prototype.isVideo = function(src, index) {

if(!src) {
throw new Error("Make sure that slide " + index + " has an image/video src");
}

var html;
if (this.s.dynamic) {
html = this.s.dynamicEl[index].html;
Expand Down

0 comments on commit 3ebfebc

Please sign in to comment.