Fix bug#4146, set guid of wrapped function same as original function

This commit is contained in:
Atul Pratap Singh 2013-11-29 22:22:28 +05:30
parent a63bf83abe
commit 5fd23f1385

View File

@ -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;