From b2d66026d8813240cf7f6c0b5186cd78142dab66 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 18 Dec 2024 12:54:58 -0600 Subject: [PATCH] Upgrade imagesloaded to 5.0 --- README.md | 2 +- .../javascripts/blacklight_gallery/default.js | 2 +- vendor/assets/javascripts/imagesloaded.min.js | 7 - .../assets/javascripts/imagesloaded.pkgd.js | 441 ++++++++++++++++++ 4 files changed, 443 insertions(+), 9 deletions(-) delete mode 100644 vendor/assets/javascripts/imagesloaded.min.js create mode 100644 vendor/assets/javascripts/imagesloaded.pkgd.js diff --git a/README.md b/README.md index c5fea94..102e57e 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Run the gallery generator for Sprockets: Or for node based bundlers add `blacklight-gallery masonry-layout@v4` as a dependencies and add this to your entrypoint: ```js -import 'blacklight-gallery/vendor/assets/javascripts/imagesloaded.min.js' +import 'blacklight-gallery/vendor/assets/javascripts/imagesloaded.pkgd.js' import 'blacklight-gallery/app/assets/javascripts/blacklight_gallery/slideshow' import 'blacklight-gallery/app/assets/javascripts/blacklight_gallery/masonry' ``` diff --git a/app/assets/javascripts/blacklight_gallery/default.js b/app/assets/javascripts/blacklight_gallery/default.js index 4c8a5cb..795a305 100644 --- a/app/assets/javascripts/blacklight_gallery/default.js +++ b/app/assets/javascripts/blacklight_gallery/default.js @@ -1,4 +1,4 @@ -//= require imagesloaded.min.js +//= require imagesloaded.pkgd.js //= require masonry.min.js //= require blacklight_gallery/slideshow //= require blacklight_gallery/masonry diff --git a/vendor/assets/javascripts/imagesloaded.min.js b/vendor/assets/javascripts/imagesloaded.min.js deleted file mode 100644 index bcccd8a..0000000 --- a/vendor/assets/javascripts/imagesloaded.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * imagesLoaded PACKAGED v4.1.4 - * JavaScript is all like "You images are done yet or what?" - * MIT License - */ - -!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o