From 15c23089c6bb5f76cfaef1aa2073ccc55d4ff9af Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 18 Jul 2015 13:43:48 +1000 Subject: [PATCH] Patch sortable to fix reinitialization errors (and memory leaks) Refs https://github.com/johnny/jquery-sortable/pull/122 --- modules/system/assets/ui/vendor/sortable/jquery-sortable.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/system/assets/ui/vendor/sortable/jquery-sortable.js b/modules/system/assets/ui/vendor/sortable/jquery-sortable.js index 6cbd80634..cb5516183 100644 --- a/modules/system/assets/ui/vendor/sortable/jquery-sortable.js +++ b/modules/system/assets/ui/vendor/sortable/jquery-sortable.js @@ -631,6 +631,10 @@ return val != that }) + // See https://github.com/johnny/jquery-sortable/pull/122 + if(this.group) + this.group._destroy() + $.each(this.items || [], function(){ $.removeData(this, subContainerKey) })