From 9859f7b262c286f689f1065885c9b0e44b940871 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 23 Oct 2016 19:05:55 +0200 Subject: use a library for image onload events --- themes/flog/static/js/imagesloaded-4.1.1.min.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 themes/flog/static/js/imagesloaded-4.1.1.min.js (limited to 'themes/flog/static') diff --git a/themes/flog/static/js/imagesloaded-4.1.1.min.js b/themes/flog/static/js/imagesloaded-4.1.1.min.js new file mode 100644 index 0000000..37f1283 --- /dev/null +++ b/themes/flog/static/js/imagesloaded-4.1.1.min.js @@ -0,0 +1,7 @@ +/*! + * imagesLoaded PACKAGED v4.1.1 + * JavaScript is all like "You images are done yet or what?" + * MIT License + */ + +!function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}(window,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i