Skip to content

Commit

Permalink
Updated jQuery plugin to version 1.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Jul 15, 2019
1 parent fa9058c commit 6b5bc26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion src/Resources/public/js/rocksolid-slider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! rocksolid-slider v1.6.6 */
/*! rocksolid-slider v1.6.7 */
(function($, window, document) {

var Rst = {};
Expand Down Expand Up @@ -220,10 +220,21 @@ Rst.Slide = (function() {
}

var mediaLoadEventFired = false;
var loadedSources = {};
var mediaLoadEvent = function() {

mediaLoadEventFired = true;

// Only handle load event once per source,
// fixes bug in Chrome https://crbug.com/984121
var src = event && event.target && (event.target.currentSrc || event.target.src);
if (src) {
if (loadedSources[src]) {
return;
}
loadedSources[src] = true;
}

self.slider.resize(self.data.index);

// Fix safari bug with invisible images, see #9
Expand Down
Loading

0 comments on commit 6b5bc26

Please sign in to comment.