Skip to content

Commit 002d786

Browse files
authored
Merge pull request #34 from xremix/develop
Fix jQuery 3 issue
2 parents 33d13bc + 6481941 commit 002d786

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xGallerify",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"homepage": "https://github.com/xremix/xGallerify",
55
"authors": [
66
"Toni Hoffmann <toni-hoffmann@xremix.de>"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xgallerify",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "A lightweight, responsive, smart gallery based on jQuery.",
55
"main": "gulpfile.js",
66
"scripts": {

src/jquery.xgallerify.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
this.gallerify.renderAsyncImages = function(){
4040
setupChilds(_this, params.margin);
4141
if(params.debounceLoad){
42-
_this.find("img").load(function(){
42+
_this.find("img").on('load', function(){
4343
asyncImagesLoadedFinished();
4444
});
4545
}else{
46-
_this.find("img").load(function(){
46+
_this.find("img").on('load', function(){
4747
renderGallery(_this, params);
4848
});
4949
}

0 commit comments

Comments
 (0)