From d15ae83b17142d58a95d7273773b03438146ab6c Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Mon, 15 Jun 2015 12:52:06 +0530 Subject: [PATCH] Reset variables on tear down Signed-off-by: Madhura Jayaratne --- js/pmd/history.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/pmd/history.js b/js/pmd/history.js index 538404bfdc..406c8be7b6 100644 --- a/js/pmd/history.js +++ b/js/pmd/history.js @@ -10,7 +10,7 @@ var history_array = []; // Global array to store history objects var select_field = []; // Global array to store informaation for columns which are used in select clause var g_index; -var vqb_editor; +var vqb_editor = null; /** * function for panel, hides and shows toggle_container
,which is for history elements uses {@link JQuery}. @@ -796,6 +796,8 @@ function build_query(formtitle, fadin) AJAX.registerTeardown('pmd/history.js', function () { vqb_editor = null; + history_array = []; + select_field = []; $("#ok_edit_rename").unbind('click'); $("#ok_edit_having").unbind('click'); $("#ok_edit_Aggr").unbind('click');