From a681bd7bd23ae5e31375abc71d4c6d405e0da4db Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Wed, 19 Feb 2014 16:57:27 +0000 Subject: [PATCH] FIX: IE8 support in jquery.ondemand.js (fixes #2872) --- javascript/jquery-ondemand/jquery.ondemand.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/jquery-ondemand/jquery.ondemand.js b/javascript/jquery-ondemand/jquery.ondemand.js index e5ff5fcf8..ec647e66b 100644 --- a/javascript/jquery-ondemand/jquery.ondemand.js +++ b/javascript/jquery-ondemand/jquery.ondemand.js @@ -16,7 +16,7 @@ (function($){ var decodePath = function(str) { - return str.replace(/%2C/g,',').replace(/\&/g, '&').trim(); + return str.replace(/%2C/g,',').replace(/\&/g, '&').replace(/^\s+|\s+$/g, ''); }; $.extend({