From 475774ec00210c8d16ddd06930ba9e547de5ebfd Mon Sep 17 00:00:00 2001 From: prochor666 Date: Fri, 16 Dec 2016 04:12:51 +0100 Subject: [PATCH] fixed build problems --- dist/js/julia-box.js | 5 ++--- dist/js/julia-box.min.js | 2 +- plugin/julia-plugin-build.js | 3 +-- src/js/julia-base.js | 2 +- src/js/julia-jquery-plugin.js | 1 - src/js/julia-umd.js | 2 +- 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/dist/js/julia-box.js b/dist/js/julia-box.js index e006b6f..b52d069 100644 --- a/dist/js/julia-box.js +++ b/dist/js/julia-box.js @@ -2,7 +2,7 @@ * JuliaBox - HTML5 lightbox * * @author prochor666@gmail.com -* @version: 0.5.2 +* @version: 0.5.3 * @build: 2016-12-16 * @license: MIT * @@ -126,7 +126,7 @@ var JuliaBox = function(options) }, timeout: origin.options.timeout, timer: false, - version: '0.5.2', + version: '0.5.3', videoAutoplay: origin.options.videoAutoplay, }; @@ -1244,7 +1244,6 @@ $.fn.juliaBox = function( options ) api.close = function(){ $('.'+masterSelector).find('button.julia-close').click(); }; api.open = function(){ _collection[0].click(); }; - return api; }; diff --git a/dist/js/julia-box.min.js b/dist/js/julia-box.min.js index d340f32..1d518bb 100644 --- a/dist/js/julia-box.min.js +++ b/dist/js/julia-box.min.js @@ -1 +1 @@ -!function(e,n){"function"==typeof define&&define.amd?define(["exports","jquery"],function(i,t){n(e.commonJsStrictGlobal=i,t)}):"object"==typeof exports&&"string"!=typeof exports.nodeName?n(exports,require("jquery")):n(e.commonJsStrictGlobal={},e.jQuery)}(this,function(n,t){var o=function(e){var n=this;e="undefined"==typeof e?{}:e;var i=Math.floor(1e7*Math.random()+1);return n.options={autoplay:!1,autoplayControls:!1,attr:"href",collection:t("a[data-julia-box] img"),debug:!1,i18n:{close:"Close",next:"Next",previous:"Previous",errorIframe:"Error, content not loaded",errorImage:"Error, image not loaded",errorInline:"Error, element not found"},iframeWidthLimit:1280,item:{},itemIndex:0,onClose:!1,onInit:!1,onCreate:!1,onNext:!1,onPrevious:!1,overlayActive:!0,root:t("body"),sources:{},thumbs:!1,timeout:7,videoAutoplay:!0},t.extend(!0,n.options,e),n.env={attr:n.options.attr,autoplay:n.options.autoplay,autoplayControls:n.options.autoplayControls,collection:n.options.collection,i18n:n.options.i18n,ID:i,collectionID:n.options.collectionID,iframeWidthLimit:n.options.iframeWidthLimit,instance:{},item:n.options.item,itemIndex:n.options.itemIndex,itemType:"inline",last:n.options.collection.length-1,mediaObj:t([]),mediaObjSize:[0,0],model:{wrapper:{},content:{},toolbar:{},buttons:{},panels:{},preloader:{}},overlayActive:n.options.overlayActive,opener:!1,overflow:n.options.root.css("overflow"),root:n.options.root,services:{image:/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,youtube:/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,vimeo:/(vimeo(pro)?\.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,googleMaps:/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,facebookVideo:/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,instagram:/(instagram\.com)\/p\/([^\/]+)\/(\?\S*)?$/i,iframe:/(http|https)?:\/\/[a-zA-Z0-9-\.]+\.[a-z]{2,4}/i},timeout:n.options.timeout,timer:!1,version:"0.5.2",videoAutoplay:n.options.videoAutoplay},n.Base={},n.Base.debug=function(e){if(n.options.debug===!0&&window.console)for(d in e)console.log(" - [Julia BOX instance: "+n.env.ID+"] "+d+" ["+typeof e[d]+"]",e[d])},n.options.debug===!0&&window.console&&console.info("=== Julia BOX console debug start, instance "+n.env.ID+" ==="),n.Ui=new n._Ui(n),n.Events=new n._Events(n),n.Callback=new n._Callback(n),n.Support=new n._Support(n),n.Media=new n._Media(n),n.Controls=new n._Controls(n),n.Events.init(),n.options.onInit!==!1&&0==n.env.itemIndex&&n.Callback.fn(n.options.onInit),n.env},a=function(e){e="undefined"==typeof e?{}:e;var n={sources:{},attr:"href",root:t("body")},i=Math.floor(1e7*Math.random()+1);t.extend(!0,n,e);var o=function(e){var n=function(e){return!!(e instanceof jQuery&&e.length||e instanceof HTMLElement)};if(e instanceof HTMLCollection&&e.length){for(var i=0,t=e.length;i");return"string"==typeof e&&i.attr(n.attr,e),"object"!=typeof e||o(e)||(e.hasOwnProperty("href")?i.attr(n.attr,e.href):e.hasOwnProperty("src")&&i.attr(n.attr,e.src),e.hasOwnProperty("title")?i.attr("title",e.title):i.attr("title","")),i.css({display:"none"}),i};_collection=t('