From 5fd23f1385e82b50dc1588c17371271c33e22aaf Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Fri, 29 Nov 2013 22:22:28 +0530 Subject: [PATCH] Fix bug#4146, set guid of wrapped function same as original function --- js/error_report.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/error_report.js b/js/error_report.js index 90ea3bb61a..3fdbb69f3d 100644 --- a/js/error_report.js +++ b/js/error_report.js @@ -252,6 +252,9 @@ var ErrorReport = { } }; new_func.wrapped = true; + //Set guid of wrapped function same as original function, so it can be removed + //See bug#4146 (problem with jquery draggable and sortable) + new_func.guid = func.guid = func.guid || new_func.guid || jQuery.guid++; return new_func; } else { return func;