From 8c3b309be777db4b120138794ce6ab90aa98bf16 Mon Sep 17 00:00:00 2001 From: Duarte Henriques Date: Sat, 22 Feb 2014 20:00:39 +0000 Subject: [PATCH] solve jquery deprecation warning --- app/views/application/_analytical_fire_events.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/application/_analytical_fire_events.html.erb b/app/views/application/_analytical_fire_events.html.erb index 5ac358c..523f69b 100644 --- a/app/views/application/_analytical_fire_events.html.erb +++ b/app/views/application/_analytical_fire_events.html.erb @@ -2,7 +2,7 @@ var commands; try { - commands = $.parseJSON(decodeURIComponent(($.cookie('analytical') || '').replace(/\+/g, '%20'))) || []; + commands = $.parseJSON(decodeURIComponent(($.cookie('analytical') || '').replace(/\+/g, '%20')) || '[]'); } catch(e) { commands = []; }