From e23aade9eccdf338cb0edce19396b0d7b9320e84 Mon Sep 17 00:00:00 2001
From: "real3t@gmail.com" <>
Date: Wed, 5 Apr 2017 08:57:43 +0000
Subject: [PATCH] =?UTF-8?q?Revert=20de=20r103735=20=C2=AB=20Deprecated=20p?=
 =?UTF-8?q?eut-=C3=AAtre,=20mais=20au=20moins=20=C3=A7a=20assure=20la=20fe?=
 =?UTF-8?q?ature?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

JSON.parse n'est pas supporté par IE9, et j'ai pas souvenir qu'on ait jeté aux orties le support de ce navigateur, car il est par ailleurs dans la couverture de jQuery 3.x » (Cédric, cf http://permalink.gmane.org/gmane.comp.web.spip.zone.cvs/100310)
---
 javascript/mejs-init.js     | 2 +-
 javascript/mejs-init.min.js | 2 +-
 paquet.xml                  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/javascript/mejs-init.js b/javascript/mejs-init.js
index d0e3410c..24dc65ca 100644
--- a/javascript/mejs-init.js
+++ b/javascript/mejs-init.js
@@ -27,7 +27,7 @@ var mejsloader;
 					}
 					var opt = {options: {}, plugins: {}, css: []}, i, v;
 					for (i in opt){
-						if (v = me.attr('data-mejs'+i)) opt[i] = JSON.parse(v);
+						if (v = me.attr('data-mejs'+i)) opt[i] = jQuery.parseJSON(v);
 					}
 					function runthisplayer(){
 						var run = true;
diff --git a/javascript/mejs-init.min.js b/javascript/mejs-init.min.js
index a722eadc..69e0262e 100644
--- a/javascript/mejs-init.min.js
+++ b/javascript/mejs-init.min.js
@@ -1 +1 @@
-var mejsloader; (function(){var a=mejsloader;"undefined"==typeof a&&(mejsloader=a={gs:null,plug:{},css:{},init:null,c:0,cssload:null});a.init||(a.cssload=function(b){if("undefined"==typeof a.css[b]){a.css[b]=!0;var c=document.createElement("link");c.href=b;c.rel="stylesheet";c.type="text/css";document.getElementsByTagName("head")[0].appendChild(c)}},a.init=function(){!0===a.gs&&function(b){jQuery("audio.mejs,video.mejs").not(".done").each(function(){function c(){var e=!0,h;for(h in d.css)a.cssload(d.css[h]);for(var f in d.plugins)"undefined"== typeof a.plug[f]?(e=!1,a.plug[f]=!1,jQuery.getScript(d.plugins[f],function(){a.plug[f]=!0;c()})):0==a.plug[f]&&(e=!1);e&&new MediaElementPlayer("#"+b,jQuery.extend(d.options,{success:function(a){function b(){jQuery(a).closest(".mejs-inner").removeClass(a.paused?"playing":"paused").addClass(a.paused?"paused":"playing")}b();a.addEventListener("play",b,!1);a.addEventListener("playing",b,!1);a.addEventListener("pause",b,!1);a.addEventListener("paused",b,!1);g.attr("autoplay")&&a.play()}}))}var g=jQuery(this).addClass("done"), b;(b=g.attr("id"))||(b="mejs-"+g.attr("data-id")+"-"+a.c++,g.attr("id",b));var d={options:{},plugins:{},css:[]},e,h;for(e in d)if(h=g.attr("data-mejs"+e))d[e]=JSON.parse(h);c()})}(jQuery)});a.gs||("undefined"!==typeof mejscss&&a.cssload(mejscss),a.gs=jQuery.getScript(mejspath,function(){a.gs=!0;a.init();jQuery(a.init);onAjaxLoad(a.init)}))})();
\ No newline at end of file
+var mejsloader; (function(){var a=mejsloader;"undefined"==typeof a&&(mejsloader=a={gs:null,plug:{},css:{},init:null,c:0,cssload:null});a.init||(a.cssload=function(b){if("undefined"==typeof a.css[b]){a.css[b]=!0;var c=document.createElement("link");c.href=b;c.rel="stylesheet";c.type="text/css";document.getElementsByTagName("head")[0].appendChild(c)}},a.init=function(){!0===a.gs&&function(b){jQuery("audio.mejs,video.mejs").not(".done").each(function(){function c(){var e=!0,h;for(h in d.css)a.cssload(d.css[h]);for(var f in d.plugins)"undefined"== typeof a.plug[f]?(e=!1,a.plug[f]=!1,jQuery.getScript(d.plugins[f],function(){a.plug[f]=!0;c()})):0==a.plug[f]&&(e=!1);e&&new MediaElementPlayer("#"+b,jQuery.extend(d.options,{success:function(a){function b(){jQuery(a).closest(".mejs-inner").removeClass(a.paused?"playing":"paused").addClass(a.paused?"paused":"playing")}b();a.addEventListener("play",b,!1);a.addEventListener("playing",b,!1);a.addEventListener("pause",b,!1);a.addEventListener("paused",b,!1);g.attr("autoplay")&&a.play()}}))}var g=jQuery(this).addClass("done"), b;(b=g.attr("id"))||(b="mejs-"+g.attr("data-id")+"-"+a.c++,g.attr("id",b));var d={options:{},plugins:{},css:[]},e,h;for(e in d)if(h=g.attr("data-mejs"+e))d[e]=jQuery.parseJSON(h);c()})}(jQuery)});a.gs||("undefined"!==typeof mejscss&&a.cssload(mejscss),a.gs=jQuery.getScript(mejspath,function(){a.gs=!0;a.init();jQuery(a.init);onAjaxLoad(a.init)}))})();
\ No newline at end of file
diff --git a/paquet.xml b/paquet.xml
index 4c9f4b27..14a7c79a 100644
--- a/paquet.xml
+++ b/paquet.xml
@@ -1,7 +1,7 @@
 <paquet
 	prefix="medias"
 	categorie="multimedia"
-	version="2.18.9"
+	version="2.18.10"
 	etat="stable"
 	compatibilite="[3.2.0-dev;3.2.*]"
 	logo="prive/themes/spip/images/portfolio-32.png"
-- 
GitLab