Skip to content

Commit

Permalink
Merge pull request #184 from JamesMcMahon/patch-1
Browse files Browse the repository at this point in the history
Remove deprecated jQuery load method, fix jQuery 3 compatibility
  • Loading branch information
vodkabears authored Jun 20, 2016
2 parents 4ebda1e + 3080f67 commit 05445c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jquery.vide.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@
callback(this.src);
};

$('<img src="' + path + '.gif">').load(onLoad);
$('<img src="' + path + '.jpg">').load(onLoad);
$('<img src="' + path + '.jpeg">').load(onLoad);
$('<img src="' + path + '.png">').load(onLoad);
$('<img src="' + path + '.gif">').on('load', onLoad);
$('<img src="' + path + '.jpg">').on('load', onLoad);
$('<img src="' + path + '.jpeg">').on('load', onLoad);
$('<img src="' + path + '.png">').on('load', onLoad);
}

/**
Expand Down

0 comments on commit 05445c6

Please sign in to comment.