From 3080f675128b7d724320b4d3561687800596eb80 Mon Sep 17 00:00:00 2001 From: James F McMahon Date: Mon, 20 Jun 2016 12:35:26 -0500 Subject: [PATCH] Remove deprecated jQuery load method .load was deprecated in jQuery 3. Fixing this seems to get the plugin working while still maintaining compatibility with jQuery 2. See https://blog.jquery.com/2015/07/13/jquery-3-0-and-jquery-compat-3-0-alpha-versions-released/. --- src/jquery.vide.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jquery.vide.js b/src/jquery.vide.js index d6534248..0fe2be65 100644 --- a/src/jquery.vide.js +++ b/src/jquery.vide.js @@ -164,10 +164,10 @@ callback(this.src); }; - $('').load(onLoad); - $('').load(onLoad); - $('').load(onLoad); - $('').load(onLoad); + $('').on('load', onLoad); + $('').on('load', onLoad); + $('').on('load', onLoad); + $('').on('load', onLoad); } /**